From ede75a4339d1aefabb440313e6d496c27e5dbb0a Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 11 May 2024 00:47:21 +0800 Subject: add c++abi --- xmake/modules/core/tools/clang.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules') 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++" -- cgit v1.3.1