Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,16 @@
# ''${NIX_ENFORCE_PURITY-1} keep the empty value instead of defaulting.
export NIX_ENFORCE_PURITY=

# Suppress the cc-wrapper --target mismatch warning on aarch64-darwin.
# GNU config.sub normalises to "aarch64-apple-darwin" while Apple's
# LLVM toolchain (and nix cc-wrapper's @defaultTarget@) uses
# "arm64-apple-darwin". GHC passes --target=aarch64-apple-darwin which
# triggers a noisy warning from cc-wrapper's add-clang-cc-cflags-before
# hook. The warning itself is harmless — clang handles both triples
# identically — but it pollutes stderr and causes thousands of GHC
# testsuite failures via unexpected compiler output.
export NIX_CC_WRAPPER_SUPPRESS_TARGET_WARNING=1

# Source stdenv's setup.sh to initialize the development
# environment. This runs all setup hooks (cc-wrapper,
# pkg-config-wrapper, etc.) and populates NIX_CFLAGS_COMPILE,
Expand Down
Loading