diff options
| author | Arthur LAURENT <[email protected]> | 2023-02-15 18:15:27 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2023-02-15 18:15:27 +0100 |
| commit | 4220ee54e0f12461ef2186f8ccf4a7823ece2ee7 (patch) | |
| tree | e4fb39a64237bba628d351fe19ed91ab8adc00af /xmake/rules/c++/modules/modules_support | |
| parent | 475734e6f4a27a3e3f2cdab3d3a93a5e949b7b0e (diff) | |
fix libc++ detection
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/clang.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua index df3cd066b..e8d52dcba 100644 --- a/xmake/rules/c++/modules/modules_support/clang.lua +++ b/xmake/rules/c++/modules/modules_support/clang.lua @@ -157,7 +157,7 @@ function load(target) -- on ubuntu: -- sudo apt install libc++-dev libc++abi-15-dev -- - local flags = table.join(target:get("cxxflags"), get_config("cxxflags") or {}) + local flags = table.join(target:get("cxxflags") or {}, get_config("cxxflags") or {}) target:data_set("cxx.modules.use_libc++", table.contains(flags, "-stdlib=libc++", "clang::-stdlib=libc++")) if target:data("cxx.modules.use_libc++") then _enable_libcxx(target) |
