Skip to content

Commit

Permalink
handle case for clang std module detection when -print-library-module…
Browse files Browse the repository at this point in the history
…-manifest-path doesn't find libc++.module.json
  • Loading branch information
Arthapz committed Mar 17, 2024
1 parent c13e8d5 commit 838bf12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function _get_std_module_manifest_path(target)
if print_module_manifest_flag then
local compinst = target:compiler("cxx")
local outdata, _ = try { function() return os.iorunv(compinst:program(), {print_module_manifest_flag}, {envs = compinst:runenvs()}) end }
if outdata then
if outdata and outdata ~= "<NOT PRESENT>" then
return outdata:trim()
end
end
Expand Down

0 comments on commit 838bf12

Please sign in to comment.