cc-wrapper: Unconditionally warn about skipped native flags

This commit is contained in:
Zhaofeng Li
2022-11-29 14:43:04 -07:00
parent 01e997df07
commit 8db4537cda
+1 -1
View File
@@ -111,7 +111,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