diff options
| author | ruki <[email protected]> | 2024-05-11 06:49:18 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-11 06:49:18 +0800 |
| commit | 2e3a31be034dd4fab8cd0cb206efa30a35897020 (patch) | |
| tree | 2c0ff3bd4263b94672dc17c8daec4d0c80a3fc1c /xmake/modules | |
| parent | c70dcbf65396608ebe53cf2941960cb84a931d15 (diff) | |
| parent | ede75a4339d1aefabb440313e6d496c27e5dbb0a (diff) | |
Merge pull request #5083 from xmake-io/runtime
add c++abi
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/core/tools/clang.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua index 76a1f773b..a7e5b1d11 100644 --- a/xmake/modules/core/tools/clang.lua +++ b/xmake/modules/core/tools/clang.lua @@ -271,7 +271,7 @@ function nf_runtime(self, runtime, opt) local target = opt.target or opt local is_cxx = target and (target.sourcekinds and table.contains(table.wrap(target:sourcekinds()), "cxx")) if is_cxx then - maps["c++_static"] = "-stdlib=libc++" + maps["c++_static"] = {"-stdlib=libc++", "-lc++abi"} maps["c++_shared"] = "-stdlib=libc++" maps["stdc++_static"] = "-stdlib=libstdc++" maps["stdc++_shared"] = "-stdlib=libstdc++" |
