Fix more 10.x hardcodings.
This commit is contained in:
parent
fbf56e27a0
commit
6f1970fd24
@ -52,7 +52,7 @@ module Stdenv
|
|||||||
def remove_macosxsdk(version = nil)
|
def remove_macosxsdk(version = nil)
|
||||||
# Clear all lib and include dirs from CFLAGS, CPPFLAGS, LDFLAGS that were
|
# Clear all lib and include dirs from CFLAGS, CPPFLAGS, LDFLAGS that were
|
||||||
# previously added by macosxsdk
|
# previously added by macosxsdk
|
||||||
remove_from_cflags(/ ?-mmacosx-version-min=10\.\d+/)
|
remove_from_cflags(/ ?-mmacosx-version-min=\d+\.\d+/)
|
||||||
delete("CPATH")
|
delete("CPATH")
|
||||||
remove "LDFLAGS", "-L#{HOMEBREW_PREFIX}/lib"
|
remove "LDFLAGS", "-L#{HOMEBREW_PREFIX}/lib"
|
||||||
|
|
||||||
|
|||||||
@ -188,8 +188,8 @@ class Cmd
|
|||||||
when "-Xpreprocessor", "-Xclang"
|
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=(\d+)\.(\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 == "10" && $2.to_i < 9
|
||||||
args << arg
|
args << arg
|
||||||
when "--fast-math"
|
when "--fast-math"
|
||||||
arg = "-ffast-math" if tool =~ /^clang/
|
arg = "-ffast-math" if tool =~ /^clang/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user