summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2020-10-23 20:13:45 +0300
committerGitHub <noreply@github.com>2020-10-23 10:13:45 -0700
commitbacfd4760c2474c418000c6838a0f4c9fadb1c09 (patch)
treedba92f93414fac3851615d91748a916f3bad75b2
parentfd7e53fe0ae99bd27179cb35d537e4ce5ec1fe11 (diff)
downloadbinaryen-bacfd4760c2474c418000c6838a0f4c9fadb1c09.tar.gz
binaryen-bacfd4760c2474c418000c6838a0f4c9fadb1c09.tar.bz2
binaryen-bacfd4760c2474c418000c6838a0f4c9fadb1c09.zip
Build without RTTI (#3280)
This improves binary size, for example shrinking binaryen.dylib on MacOS by half a megabyte.
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4f25574f1..bc6e517ca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -214,6 +214,7 @@ else()
add_compile_flag("-Wextra")
add_compile_flag("-Wno-unused-parameter")
add_compile_flag("-fno-omit-frame-pointer")
+ add_compile_flag("-fno-rtti")
# TODO(https://github.com/WebAssembly/binaryen/pull/2314): Remove these two
# flags once we resolve the issue.
add_compile_flag("-Wno-implicit-int-float-conversion")