summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/clang.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua
index 192fd1854..c2bb5a72c 100644
--- a/xmake/modules/core/tools/clang.lua
+++ b/xmake/modules/core/tools/clang.lua
@@ -239,7 +239,7 @@ function nf_runtime(self, runtime, opt)
end
if not self:is_plat("android") then -- we will set runtimes in android ndk toolchain
maps = maps or {}
- local llvm_rootdir = get_config("sdk") or self:get("sdk")
+ local llvm_rootdir = self:toolchain():sdkdir()
if kind == "cxx" then
maps["c++_static"] = "-stdlib=libc++"
maps["c++_shared"] = "-stdlib=libc++"