From e76a80fe2b54d04c555529127496e0912cd83a09 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 16 Feb 2023 23:43:42 +0800 Subject: improve scandeps --- xmake/rules/c++/modules/modules_support/clang.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua index 86ec44e9e..5adeba4fa 100644 --- a/xmake/rules/c++/modules/modules_support/clang.lua +++ b/xmake/rules/c++/modules/modules_support/clang.lua @@ -308,10 +308,8 @@ function generate_dependencies(target, sourcebatch, opt) local compflags = compinst:compflags({sourcefile = sourcefile, target = target}) local flags = table.join("--format=p1689", "--", compinst:program(), "-x", "c++", "-c", sourcefile, "-o", target:objectfile(sourcefile), + "-stdlib=libc++", compflags) - if target:data("cxx.modules.use_libc++") then - table.insert(flags, "-stdlib=libc++") - end vprint(table.concat(table.join(clangscandeps, flags), " ")) local outdata, errdata = os.iorunv(clangscandeps, flags) assert(errdata, errdata) -- cgit v1.3.1