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

authored by Marcus Ramberg and committed by GitHub 3f22849c f885cdd5

+4
+4
pkgs/top-level/perl-packages.nix
··· 4111 4111 }; 4112 4112 nativeBuildInputs = [ pkgs.ld-is-cc-hook ]; 4113 4113 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 + }; 4114 4118 meta = { 4115 4119 homepage = "https://github.com/goccy/p5-Compiler-Lexer"; 4116 4120 description = "Lexical Analyzer for Perl5";