Skip to content

Commit f2e095a

Browse files
authored
tinycc: fix build on gcc 14 (NixOS#374379)
2 parents 2ee10b5 + 72f369a commit f2e095a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pkgs/development/compilers/tinycc/default.nix

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,10 @@ stdenv.mkDerivation (finalAttrs: {
9090
configureFlagsArray+=("--elfinterp=$(< $NIX_CC/nix-support/dynamic-linker)")
9191
'';
9292

93-
env.NIX_CFLAGS_COMPILE = toString (
94-
lib.optionals stdenv.cc.isClang [
95-
"-Wno-error=implicit-int"
96-
"-Wno-error=int-conversion"
97-
]
98-
);
93+
env.NIX_CFLAGS_COMPILE = toString [
94+
"-Wno-error=implicit-int"
95+
"-Wno-error=int-conversion"
96+
];
9997

10098
# Test segfault for static build
10199
doCheck = !stdenv.hostPlatform.isStatic;

0 commit comments

Comments
 (0)