diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2018-12-13 23:58:54 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2018-12-13 23:58:54 +0200 |
commit | e8ac331501c91373a77967a5f609b0912aa05fc4 (patch) | |
tree | c38ac7f537c6d5f04044c2910d93b47179678eb6 | |
parent | 802dd8ff76d423f438c1d69dd5da6c47bb762c88 (diff) | |
download | binaryen-e8ac331501c91373a77967a5f609b0912aa05fc4.tar.gz binaryen-e8ac331501c91373a77967a5f609b0912aa05fc4.tar.bz2 binaryen-e8ac331501c91373a77967a5f609b0912aa05fc4.zip |
Fix Visual Studio 2017 15.8 build
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 95ae22864..ed7e1c339 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,6 +74,9 @@ IF(MSVC) ADD_NONDEBUG_COMPILE_FLAG("/O2") ADD_COMPILE_FLAG("/D_CRT_SECURE_NO_WARNINGS") ADD_COMPILE_FLAG("/D_SCL_SECURE_NO_WARNINGS") + # Visual Studio 2018 15.8 implemented conformant support for std::aligned_storage, but the conformant support is only enabled when the following flag is passed, to avoid + # breaking backwards compatibility with code that relied on the non-conformant behavior (the old nonconformant behavior is not used with Binaryen) + ADD_COMPILE_FLAG("/D_ENABLE_EXTENDED_ALIGNED_STORAGE") # Don't warn about using "strdup" as a reserved name. ADD_COMPILE_FLAG("/D_CRT_NONSTDC_NO_DEPRECATE") |