shims/super/cc: Do not remove -Xpreprocessor argument
This commit is contained in:
parent
e893d13d20
commit
2c09c0e0f4
@ -187,6 +187,9 @@ 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"
|
||||||
|
# used for -Xpreprocessor -fopenmp
|
||||||
|
args << arg << enum.next
|
||||||
when /-mmacosx-version-min=10\.(\d)/
|
when /-mmacosx-version-min=10\.(\d)/
|
||||||
arg = "-mmacosx-version-min=10.9" if high_sierra_or_later? && $1.to_i < 9
|
arg = "-mmacosx-version-min=10.9" if high_sierra_or_later? && $1.to_i < 9
|
||||||
args << arg
|
args << arg
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user