From 8311fbdfe168da764a3e78e76f872c1ec0bc6c27 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Sat, 25 Oct 2025 14:25:24 -0700 Subject: [PATCH] [emscripten] Remove -msign-ext and -mbulk-memory linker flags Modern versions of emscripten and llvm both enable these by default. --- CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 08359d809c7..c3a2e21665a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -551,8 +551,6 @@ if(EMSCRIPTEN) target_link_libraries(binaryen_wasm PRIVATE "-sEXPORTED_RUNTIME_METHODS=stringToUTF8OnStack,stringToAscii") target_link_libraries(binaryen_wasm PRIVATE "-sEXPORTED_FUNCTIONS=_malloc,_free") target_link_libraries(binaryen_wasm PRIVATE "--post-js=${CMAKE_CURRENT_SOURCE_DIR}/src/js/binaryen.js-post.js") - target_link_libraries(binaryen_wasm PRIVATE "-msign-ext") - target_link_libraries(binaryen_wasm PRIVATE "-mbulk-memory") target_link_libraries(binaryen_wasm PRIVATE optimized "--closure=1") # TODO: Fix closure warnings! (#5062) target_link_libraries(binaryen_wasm PRIVATE optimized "-Wno-error=closure")