Merge pull request #7429 from Bo98/xclang

shims/super/cc: relax restrictions with -Xclang
This commit is contained in:
Bo Anderson 2020-04-24 20:41:35 +01:00 committed by GitHub
commit 6b1d78ba72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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+)/