summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-03-17 17:28:32 +0100
committerArthur LAURENT <[email protected]>2024-03-23 23:56:38 +0100
commit1d1474dbfb2b65ca90df6b22c6cad461eaebbe69 (patch)
tree51cc969dfdbff0bddb60c51dcf49b698585dbde3
parentb3115d8c98fda1a727f81e47b3dd2e353c9df5e2 (diff)
handle case for clang std module detection when -print-library-module-manifest-path doesn't find libc++.module.json
-rw-r--r--xmake/rules/c++/modules/modules_support/clang/compiler_support.lua2
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 7fba1054a..1bc4ee6bf 100644
--- a/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua
+++ b/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua
@@ -84,7 +84,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