Skip to content

Commit

Permalink
add C++23 and libc++ flags for -print-library-module-manifest-path
Browse files Browse the repository at this point in the history
detection
  • Loading branch information
Arthapz committed Mar 17, 2024
1 parent 838bf12 commit 65b5f53
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ function _get_std_module_manifest_path(target)
local print_module_manifest_flag = get_print_library_module_manifest_path_flag(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 and outdata ~= "<NOT PRESENT>" then
local outdata, _ = try { function() return os.iorunv(compinst:program(), {"-std=c++23", "-stdlib=libc++", print_module_manifest_flag}, {envs = compinst:runenvs()}) end }
if outdata and not outdata:startswith("<NOT PRESENT>") then
return outdata:trim()
end
end
Expand Down

0 comments on commit 65b5f53

Please sign in to comment.