From 1d1474dbfb2b65ca90df6b22c6cad461eaebbe69 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Sun, 17 Mar 2024 17:28:32 +0100 Subject: handle case for clang std module detection when -print-library-module-manifest-path doesn't find libc++.module.json --- xmake/rules/c++/modules/modules_support/clang/compiler_support.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ~= "" then return outdata:trim() end end -- cgit v1.3.1