shims/super/cc: relax restrictions with -Xclang

This commit is contained in:
Bo Anderson 2020-04-24 00:29:02 +01:00
parent d5ffb96d24
commit fb65d5a1f8

View File

@ -185,7 +185,7 @@ class Cmd
"-fuse-linker-plugin", "-frounding-math" "-fuse-linker-plugin", "-frounding-math"
# clang doesn't support these flags # clang doesn't support these flags
args << arg unless tool =~ /^clang/ args << arg unless tool =~ /^clang/
when "-Xpreprocessor" when "-Xpreprocessor", "-Xclang"
# used for -Xpreprocessor -fopenmp # used for -Xpreprocessor -fopenmp
args << arg << enum.next args << arg << enum.next
when /-mmacosx-version-min=10\.(\d+)/ when /-mmacosx-version-min=10\.(\d+)/