fix boost for macos (#1996)

pull/1997/head
ruki 2 years ago committed by GitHub
parent 08a1fe7fe1
commit 80ab9a6945
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      packages/b/boost/xmake.lua

@ -134,7 +134,12 @@ package("boost")
if file then
if package:is_plat("macosx") then
-- we uses ld/clang++ for link stdc++ for shared libraries
file:print("using darwin : : %s ;", package:build_getenv("ld"))
-- and we need `xcrun -sdk macosx clang++` to make b2 to get `-isysroot` automatically
local cc = package:build_getenv("ld")
if cc and cc:find("clang", 1, true) and cc:find("Xcode", 1, true) then
cc = "xcrun -sdk macosx clang++"
end
file:print("using darwin : : %s ;", cc)
elseif package:is_plat("windows") then
file:print("using msvc : : \"%s\" ;", (package:build_getenv("cxx"):gsub("\\", "\\\\")))
else

Loading…
Cancel
Save