diff options
| author | Arthur LAURENT <[email protected]> | 2024-02-04 19:13:44 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-02-04 19:13:44 +0100 |
| commit | b9f8cab2e55a049d448d133fd7a5875ffaead06f (patch) | |
| tree | 4adcb3102b0559343d015541cc6368a3de85dd81 /xmake/rules/c++ | |
| parent | 650d8f228efc460066f7ce8de4594da4bb883f96 (diff) | |
fix finding of libc++.modules.json when it is not directly in lib folder
Diffstat (limited to 'xmake/rules/c++')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/clang/compiler_support.lua | 2 |
1 files changed, 1 insertions, 1 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 ebbfb99ff..53da9a36c 100644 --- a/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua +++ b/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua @@ -209,7 +209,7 @@ 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 = find_file("**.modules.json", clang_lib_path) if modules_json_path then local modules_json = json.decode(io.readfile(modules_json_path)) local std_module_directory = path.directory(modules_json.modules[1]["source-path"]) |
