Skip to content

Commit

Permalink
Merge pull request #4695 from Arthapz/fix-libc++.modules.json-finding
Browse files Browse the repository at this point in the history
Fix libc++.modules.json finding
  • Loading branch information
waruqi authored Feb 5, 2024
2 parents d375ab0 + b9f8cab commit 05b80a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 05b80a3

Please sign in to comment.