diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-06-07 10:39:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-07 10:39:50 +0200 |
commit | 2b9cc3c2f0032a3f79066afbf5259a0e61cff214 (patch) | |
tree | 26a2604b7113e961c8595995a97f2126c8e16759 /pkgs/development | |
parent | 6207e8b8f70add6cd4990cbe85c7ed3c84e8828d (diff) | |
parent | 9e65a7fba2f52b391271fb1de5c700f72591da87 (diff) |
Merge pull request #315922 from wegank/tcc-darwin
tinycc: fix build on x86_64-darwin
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/compilers/tinycc/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/compilers/tinycc/default.nix b/pkgs/development/compilers/tinycc/default.nix index a848accf16669..b36eb44229d18 100644 --- a/pkgs/development/compilers/tinycc/default.nix +++ b/pkgs/development/compilers/tinycc/default.nix @@ -79,6 +79,11 @@ stdenv.mkDerivation (finalAttrs: { configureFlagsArray+=("--elfinterp=$(< $NIX_CC/nix-support/dynamic-linker)") ''; + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [ + "-Wno-error=implicit-int" + "-Wno-error=int-conversion" + ]); + # Test segfault for static build doCheck = !stdenv.hostPlatform.isStatic; |