cc-wrapper: warn if clang's --target option is used on a wrapped compiler

This commit is contained in:
Robert Scott
2024-07-02 22:38:06 +01:00
parent 06c0912a4f
commit fc590fdd05
@@ -2,7 +2,11 @@ needsTarget=true
for p in "${params[@]}"; do
case "$p" in
-target | --target=*) needsTarget=false ;;
-target | --target=*)
needsTarget=false
echo "Warning: supplying the --target argument to a nix-wrapped compiler may not work correctly - cc-wrapper is currently not designed with multi-target compilers in mind. You may want to use an un-wrapped compiler instead." >&2
;;
esac
done