summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-12-08 11:09:24 -0800
committerGitHub <noreply@github.com>2023-12-08 19:09:24 +0000
commit7dec4165fcda2cfce2b887125bd1baeaafe9ac67 (patch)
treedd464956208f77075d7db12f1da2771f06e7447a /CMakeLists.txt
parent9efe1d06f05d8692d141b5ea0fde45d7f6fc0692 (diff)
downloadbinaryen-7dec4165fcda2cfce2b887125bd1baeaafe9ac67.tar.gz
binaryen-7dec4165fcda2cfce2b887125bd1baeaafe9ac67.tar.bz2
binaryen-7dec4165fcda2cfce2b887125bd1baeaafe9ac67.zip
binaryen.js: Remove closure flags that set the ES version (#6157)
Emscripten sets that itself these days.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4e8e780bf..1836d9556 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -468,7 +468,6 @@ if(EMSCRIPTEN)
target_link_libraries(binaryen_wasm "-msign-ext")
target_link_libraries(binaryen_wasm "-mbulk-memory")
target_link_libraries(binaryen_wasm optimized "--closure=1")
- target_link_libraries(binaryen_wasm optimized "--closure-args=\"--language_in=ECMASCRIPT6 --language_out=ECMASCRIPT6\"")
# TODO: Fix closure warnings! (#5062)
target_link_libraries(binaryen_wasm optimized "-Wno-error=closure")
target_link_libraries(binaryen_wasm optimized "-flto")
@@ -511,9 +510,7 @@ if(EMSCRIPTEN)
target_link_libraries(binaryen_js optimized "--closure=1")
# Currently, js_of_ocaml can only process ES5 code
if(JS_OF_OCAML)
- target_link_libraries(binaryen_js optimized "--closure-args=\"--language_in=ECMASCRIPT6 --language_out=ECMASCRIPT5\"")
- else()
- target_link_libraries(binaryen_js optimized "--closure-args=\"--language_in=ECMASCRIPT6 --language_out=ECMASCRIPT6\"")
+ target_link_libraries(binaryen_js optimized "--closure-args=\"--language_out=ECMASCRIPT5\"")
endif()
# TODO: Fix closure warnings! (#5062)
target_link_libraries(binaryen_js optimized "-Wno-error=closure")