Merge pull request #5469 from fxcoudert/fopenmp

shims/super/cc: Do not remove -Xpreprocessor argument
This commit is contained in:
Mike McQuaid 2019-01-03 18:10:27 +00:00 committed by GitHub
commit 703ca7c9cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,6 +187,9 @@ class Cmd
"-fuse-linker-plugin", "-frounding-math"
# clang doesn't support these flags
args << arg unless tool =~ /^clang/
when "-Xpreprocessor"
# used for -Xpreprocessor -fopenmp
args << arg << enum.next
when /-mmacosx-version-min=10\.(\d)/
arg = "-mmacosx-version-min=10.9" if high_sierra_or_later? && $1.to_i < 9
args << arg