summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-02-09 11:27:26 +0100
committerArthur LAURENT <[email protected]>2024-02-09 11:29:20 +0100
commit37c10d665f000c5387ca8a686a41cddb6dd85014 (patch)
tree05b489935590bc3354592593e8682afcb12c7889 /xmake/rules/c++/modules/modules_support
parent0e9efa8d7d982f11603db9ac848770231f9dff75 (diff)
fix libc++.modules.json finding
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
-rw-r--r--xmake/rules/c++/modules/modules_support/clang/compiler_support.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua b/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua
index 24915cd04..dc6930b23 100644
--- a/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua
+++ b/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua
@@ -209,9 +209,9 @@ function get_stdmodules(target)
-- @see https://github.com/llvm/llvm-project/pull/76451 (has been revert, so we need to wait)
local clang_path = path.directory(get_clang_path(target))
local clang_lib_path = path.join(clang_path, "..", "lib")
- local modules_json_path = find_file("libc++.modules.json", clang_lib_path)
+ local modules_json_path = path.join(clang_lib_path, "libc++.modules.json")
-- maybe in subdir
- if not modules_json_path then
+ if not os.isfile(modules_json_path) then
modules_json_path = find_file("*/libc++.modules.json", clang_lib_path)
end
if modules_json_path then