perl: CompilerLexer: add -Wno-register

This commit is contained in:
Joost Nieuwenhuijse
2025-03-01 13:50:01 +01:00
parent 9d3ae807eb
commit fff9885d23
+4
View File
@@ -4115,6 +4115,10 @@ with self; {
};
nativeBuildInputs = [ pkgs.ld-is-cc-hook ];
buildInputs = [ ModuleBuildXSUtil ];
# src/compiler/util/Compiler_double_charactor_operator.cpp:9:54: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=register";
};
meta = {
homepage = "https://github.com/goccy/p5-Compiler-Lexer";
description = "Lexical Analyzer for Perl5";