Skip to content

Commit 5f41b75

Browse files
committed
Update OSX environment additions
1 parent bd6804c commit 5f41b75

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/Runner.jl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,15 @@ function target_envs(target::AbstractString)
101101
mapping["NM"] = target_tool("nm")
102102
end
103103

104-
# On OSX ask for a minimum of OSX 10.8 for C++ ABI (This is default now?)
105-
#if contains(target, "-apple-")
106-
# mapping["LDFLAGS"] = "-mmacosx-version-min=10.8"
107-
#end
104+
# On OSX, we need to do a little more work.
105+
if contains(target, "-apple-")
106+
# First, tell CMake what our deployment target is, so that it tries to
107+
# set -mmacosx-version-min and such appropriately
108+
mapping["MACOSX_DEPLOYMENT_TARGET"] = "10.8"
109+
110+
# Also put this into LDFLAGS because some packages are hard of hearing
111+
mapping["LDFLAGS"] = "-mmacosx-version-min=10.8"
112+
end
108113

109114
return mapping
110115
end

0 commit comments

Comments
 (0)