diff options
| author | ruki <[email protected]> | 2023-02-16 23:43:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-16 23:43:42 +0800 |
| commit | e76a80fe2b54d04c555529127496e0912cd83a09 (patch) | |
| tree | cb21953109c23387576042bcbea740e9b27f708d /xmake/rules/c++/modules/modules_support | |
| parent | 9e8183b512ccf2bd2d9a14c9ca1caaabb3fdc2ef (diff) | |
improve scandeps
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/clang.lua | 4 |
1 files changed, 1 insertions, 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) |
