Skip to content

Commit 3f22849

Browse files
perl: CompilerLexer: add -Wno-register to fix build with clang (#386081)
2 parents f885cdd + fff9885 commit 3f22849

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkgs/top-level/perl-packages.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4111,6 +4111,10 @@ with self; {
41114111
};
41124112
nativeBuildInputs = [ pkgs.ld-is-cc-hook ];
41134113
buildInputs = [ ModuleBuildXSUtil ];
4114+
# src/compiler/util/Compiler_double_charactor_operator.cpp:9:54: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
4115+
env = lib.optionalAttrs stdenv.cc.isClang {
4116+
NIX_CFLAGS_COMPILE = "-Wno-error=register";
4117+
};
41144118
meta = {
41154119
homepage = "https://github.com/goccy/p5-Compiler-Lexer";
41164120
description = "Lexical Analyzer for Perl5";

0 commit comments

Comments
 (0)