From 83113c6b7a0e1b6eddf0b06f94069c34b13adf8c Mon Sep 17 00:00:00 2001 From: Krzysztof Piaskowy Date: Wed, 27 Nov 2024 16:06:03 +0100 Subject: [PATCH] Test flag --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40002ee6a8a..0a475361a54 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -563,6 +563,9 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC") if (HERMES_MSVC_MP) add_definitions( /MP ) endif() + # MSVC does not have strict aliasing so there is no need to support it. + # Similar to GCC/Clang above, disable strict signed integer overflow. + append("/WX /wd4293" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) endif() # Export a JSON file with the compilation commands that external tools can use