authorgravatar for takeshi@tetrate.ioTakeshi Yoneda <takeshi@tetrate.io> 2021-06-15 11:50:13+09:00
committergravatar for takeshi@tetrate.ioTakeshi Yoneda <takeshi@tetrate.io> 2021-06-15 11:50:13+09:00
log0063f642d11fa82d4776634df166c9c9cd1f26e1
tree68570546b6323f199a91d375c7c94b7024f1a585
parentdc7d354ee4c34b9f2f1b2b34fc755d3740878044

fix comments.

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>

1 files changed, 2 insertions(+), 4 deletions(-)

src/libcxx.zig+2-4
......@@ -139,9 +139,8 @@ pub fn buildLibCXX(comp: *Compilation) !void {
139139 }
140140
141141 if (target.os.tag == .wasi) {
142 // WASI doesn't support thread yet.
142 // WASI doesn't support thread and exception yet.
143143 try cflags.append("-D_LIBCPP_HAS_NO_THREADS");
144 // Also, exception is not supported yet.
145144 try cflags.append("-fno-exceptions");
146145 }
147146
......@@ -253,13 +252,12 @@ pub fn buildLibCXXABI(comp: *Compilation) !void {
253252 var cflags = std.ArrayList([]const u8).init(arena);
254253
255254 if (target.os.tag == .wasi) {
256 // WASI doesn't support thread yet.
255 // WASI doesn't support thread and exception yet.
257256 if (std.mem.startsWith(u8, cxxabi_src, "src/cxa_thread_atexit.cpp") or
258257 std.mem.startsWith(u8, cxxabi_src, "src/cxa_exception.cpp") or
259258 std.mem.startsWith(u8, cxxabi_src, "src/cxa_personality.cpp"))
260259 continue;
261260 try cflags.append("-D_LIBCXXABI_HAS_NO_THREADS");
262 // Also, exception is not supported yet.
263261 try cflags.append("-fno-exceptions");
264262 } else {
265263 try cflags.append("-DHAVE___CXA_THREAD_ATEXIT_IMPL");