Skip to content

Commit 8262f06

Browse files
committed
Must sneak -stdlib=libc++ in on OSX $CXX
1 parent 4d6211e commit 8262f06

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Runner.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ function platform_envs(platform::Platform, host_target="x86_64-linux-gnu")
133133
if occursin("-freebsd", target)
134134
mapping["LDFLAGS"] *= " -L/opt/$(target)/$(target)/lib"
135135
end
136+
137+
# OSX must be linked against libc++.
138+
if occursin("-apple-", target)
139+
mapping["CXX"] *= " -stdlib=libc++"
140+
end
136141
# flang isn't a realistic option yet, so we still use gfortran here
137142
mapping["FC"] = target_tool_path("gfortran")
138143
mapping["LD"] = llvm_tool_path("llvm-ld")

0 commit comments

Comments
 (0)