From 2c09c0e0f4c853dbd65faf90e132aa6c16291b67 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Wed, 2 Jan 2019 14:29:36 +0100 Subject: [PATCH] shims/super/cc: Do not remove -Xpreprocessor argument --- Library/Homebrew/shims/super/cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/shims/super/cc b/Library/Homebrew/shims/super/cc index 6054e44220..008b015efc 100755 --- a/Library/Homebrew/shims/super/cc +++ b/Library/Homebrew/shims/super/cc @@ -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