Unverified Commit 3f22849c authored by Marcus Ramberg's avatar Marcus Ramberg Committed by GitHub
Browse files

perl: CompilerLexer: add -Wno-register to fix build with clang (#386081)

parents f885cdd5 fff9885d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4111,6 +4111,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";