diff options
| author | Arthur LAURENT <[email protected]> | 2024-01-31 15:25:27 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-01-31 15:25:27 +0100 |
| commit | 0bb30a600ea7362f0a4638e72c94db903afbb7e3 (patch) | |
| tree | 967519cd320f079b0c730b1f0fc9d476fc4cd911 /xmake/rules/c++/modules/modules_support | |
| parent | 9cb5dbac8fc6b7f2b56f20734a7b71e12b39c6f4 (diff) | |
fix potentially nil runtime_flag for clang toolchain include detection
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/clang/compiler_support.lua | 2 |
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 8264daca8..f689dc87d 100644 --- a/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua +++ b/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua @@ -121,7 +121,7 @@ function toolchain_includedirs(target) runtime_flag = "-stdlib=libstdc++" end end - local _, result = try {function () return os.iorunv(clang, {"-E", runtime_flag, "-Wp,-v", "-xc", os.nuldev()}) end} + local _, result = try {function () return os.iorunv(clang, table.join({"-E", "-Wp,-v", "-xc", os.nuldev()}, runtime_flag or {})) end} if result then for _, line in ipairs(result:split("\n", {plain = true})) do line = line:trim() |
