| ... | @@ -141,6 +141,7 @@ pub fn buildLibCXX(comp: *Compilation) !void { | ... | @@ -141,6 +141,7 @@ pub fn buildLibCXX(comp: *Compilation) !void { |
| 141 | if (target.os.tag == .wasi) { | 141 | if (target.os.tag == .wasi) { |
| 142 | // WASI doesn't support thread yet. | 142 | // WASI doesn't support thread yet. |
| 143 | try cflags.append("-D_LIBCPP_HAS_NO_THREADS"); | 143 | try cflags.append("-D_LIBCPP_HAS_NO_THREADS"); |
| | 144 | // Also, exception is not supported yet. |
| 144 | try cflags.append("-fno-exceptions"); | 145 | try cflags.append("-fno-exceptions"); |
| 145 | } | 146 | } |
| 146 | | 147 | |