Skip to content

Commit 957d7fe

Browse files
committed
llvmPackages: clean up rebuild avoidance
1 parent 3a4c1a3 commit 957d7fe

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

pkgs/development/compilers/llvm/common/default.nix

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -374,18 +374,14 @@ let
374374

375375
# This is an "oddly ordered" bootstrap just for Darwin. Probably
376376
# don't want it otherwise.
377-
clangNoCompilerRtWithLibc =
378-
wrapCCWith rec {
379-
cc = tools.clang-unwrapped;
380-
libcxx = null;
381-
bintools = bintools';
382-
extraPackages = [ ];
383-
extraBuildCommands = mkExtraBuildCommands0 cc;
384-
}
385-
# FIXME: This should be inside the `wrapCCWith` call.
386-
// lib.optionalAttrs stdenv.targetPlatform.isWasm {
387-
nixSupport.cc-cflags = [ "-fno-exceptions" ];
388-
};
377+
clangNoCompilerRtWithLibc = wrapCCWith rec {
378+
cc = tools.clang-unwrapped;
379+
libcxx = null;
380+
bintools = bintools';
381+
extraPackages = [ ];
382+
extraBuildCommands = mkExtraBuildCommands0 cc;
383+
nixSupport.cc-cflags = lib.optional stdenv.targetPlatform.isWasm "-fno-exceptions";
384+
};
389385

390386
# Aliases
391387
clangNoCompilerRt = tools.clangNoLibcNoRt;

0 commit comments

Comments
 (0)