mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
libcxxabi: don't build cxa_noexception.cpp if exceptions are enabled
This commit is contained in:
parent
03078bfa41
commit
bc7cdc2b6b
1 changed files with 3 additions and 1 deletions
|
|
@ -393,11 +393,13 @@ pub fn buildLibCxxAbi(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
|
|||
var c_source_files = try std.array_list.Managed(Compilation.CSourceFile).initCapacity(arena, libcxxabi_files.len);
|
||||
|
||||
for (libcxxabi_files) |cxxabi_src| {
|
||||
if (!comp.config.any_non_single_threaded and std.mem.startsWith(u8, cxxabi_src, "src/cxa_thread_atexit.cpp"))
|
||||
if (!comp.config.any_non_single_threaded and std.mem.eql(u8, cxxabi_src, "src/cxa_thread_atexit.cpp"))
|
||||
continue;
|
||||
if (target.os.tag == .wasi and
|
||||
(std.mem.eql(u8, cxxabi_src, "src/cxa_exception.cpp") or std.mem.eql(u8, cxxabi_src, "src/cxa_personality.cpp")))
|
||||
continue;
|
||||
if (target.os.tag != .wasi and std.mem.eql(u8, cxxabi_src, "src/cxa_noexception.cpp"))
|
||||
continue;
|
||||
|
||||
var cflags = std.array_list.Managed([]const u8).init(arena);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue