Commit fc590fdd authored by Robert Scott's avatar Robert Scott
Browse files

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

parent 06c0912a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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