cc-wrapper: Unconditionally warn about skipped native flags (#203675)

This commit is contained in:
Emily
2025-01-05 19:24:53 +00:00
committed by GitHub
+1 -1
View File
@@ -131,7 +131,7 @@ if [ "$NIX_ENFORCE_NO_NATIVE_@suffixSalt@" = 1 ]; then
# Old bash empty array hack
for p in ${params+"${params[@]}"}; do
if [[ "$p" = -m*=native ]]; then
skip "$p"
>&2 echo "warning: Skipping impure flag $p because NIX_ENFORCE_NO_NATIVE is set"
else
kept+=("$p")
fi