mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
fix comments.
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
parent
dc7d354ee4
commit
0063f642d1
@ -139,9 +139,8 @@ pub fn buildLibCXX(comp: *Compilation) !void {
|
||||
}
|
||||
|
||||
if (target.os.tag == .wasi) {
|
||||
// WASI doesn't support thread yet.
|
||||
// WASI doesn't support thread and exception yet.
|
||||
try cflags.append("-D_LIBCPP_HAS_NO_THREADS");
|
||||
// Also, exception is not supported yet.
|
||||
try cflags.append("-fno-exceptions");
|
||||
}
|
||||
|
||||
@ -253,13 +252,12 @@ pub fn buildLibCXXABI(comp: *Compilation) !void {
|
||||
var cflags = std.ArrayList([]const u8).init(arena);
|
||||
|
||||
if (target.os.tag == .wasi) {
|
||||
// WASI doesn't support thread yet.
|
||||
// WASI doesn't support thread and exception yet.
|
||||
if (std.mem.startsWith(u8, cxxabi_src, "src/cxa_thread_atexit.cpp") or
|
||||
std.mem.startsWith(u8, cxxabi_src, "src/cxa_exception.cpp") or
|
||||
std.mem.startsWith(u8, cxxabi_src, "src/cxa_personality.cpp"))
|
||||
continue;
|
||||
try cflags.append("-D_LIBCXXABI_HAS_NO_THREADS");
|
||||
// Also, exception is not supported yet.
|
||||
try cflags.append("-fno-exceptions");
|
||||
} else {
|
||||
try cflags.append("-DHAVE___CXA_THREAD_ATEXIT_IMPL");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user