Skip to content

Commit d49f8a5

Browse files
Build swift-foundation-icu with -fno-exceptions
STL uses C++ exceptions for some places, so we need to disable them explicitly even though ICU itself does not use exceptions.
1 parent f37a6d0 commit d49f8a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schemes/main/build/build-foundation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ cmake -G Ninja \
4343
-D CMAKE_CXX_COMPILER_FORCED=ON \
4444
-D CMAKE_Swift_FLAGS="-sdk $WASI_SYSROOT_PATH -resource-dir $DESTINATION_TOOLCHAIN/usr/lib/swift_static $swift_extra_flags" \
4545
-D CMAKE_C_FLAGS="-resource-dir $DESTINATION_TOOLCHAIN/usr/lib/swift_static/clang -B $LLVM_BIN_DIR $c_extra_flags" \
46-
-D CMAKE_CXX_FLAGS="-resource-dir $DESTINATION_TOOLCHAIN/usr/lib/swift_static/clang -B $LLVM_BIN_DIR $c_extra_flags" \
46+
-D CMAKE_CXX_FLAGS="-fno-exceptions -resource-dir $DESTINATION_TOOLCHAIN/usr/lib/swift_static/clang -B $LLVM_BIN_DIR $c_extra_flags" \
4747
-D _SwiftCollections_SourceDIR="$SOURCE_PATH/swift-collections" \
4848
-D _SwiftFoundation_SourceDIR="$SOURCE_PATH/swift-foundation" \
4949
-D _SwiftFoundationICU_SourceDIR="$SOURCE_PATH/swift-foundation-icu" \

0 commit comments

Comments
 (0)