diff options
| author | ruki <[email protected]> | 2026-04-11 00:58:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-04-11 00:58:43 +0800 |
| commit | 29d24c3e58848c1b12022d4805f916c717285c2a (patch) | |
| tree | be88d4a80ab51d2bcb2ac47827f10742fc5a554a | |
| parent | 7be3d4a277469881ea7c2403e28885c7f8605c5f (diff) | |
fix clang runtimes
| -rw-r--r-- | xmake/modules/core/tools/clang.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua index 6b3098215..c8758b21e 100644 --- a/xmake/modules/core/tools/clang.lua +++ b/xmake/modules/core/tools/clang.lua @@ -227,7 +227,7 @@ function nf_runtime(self, runtime, opt) -- and need manual setting of libc++ headerdirectory -- @see https://github.com/llvm/llvm-project/issues/79647 local target = opt.target or opt - local llvm_dirs = toolchain_utils.get_llvm_dirs(self:toolchain()) + local llvm_dirs = self:toolchain() and toolchain_utils.get_llvm_dirs(self:toolchain()) or {} -- we will set runtimes in android ndk toolchain if not self:is_plat("android") then maps = maps or {} |
