Skip to content

Commit 29d24c3

Browse files
committed
fix clang runtimes
1 parent 7be3d4a commit 29d24c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmake/modules/core/tools/clang.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function nf_runtime(self, runtime, opt)
227227
-- and need manual setting of libc++ headerdirectory
228228
-- @see https://github.com/llvm/llvm-project/issues/79647
229229
local target = opt.target or opt
230-
local llvm_dirs = toolchain_utils.get_llvm_dirs(self:toolchain())
230+
local llvm_dirs = self:toolchain() and toolchain_utils.get_llvm_dirs(self:toolchain()) or {}
231231
-- we will set runtimes in android ndk toolchain
232232
if not self:is_plat("android") then
233233
maps = maps or {}

0 commit comments

Comments
 (0)