1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

Meta: Add flags for compilation and testing of js

This commit adds flags necessary for compilation and testing of js.exe.
The stack size is increased to match linux.
This commit is contained in:
R-Goc 2025-05-24 23:53:14 +02:00 committed by Andrew Kaster
parent 96c197faf1
commit 550aace91c
Notes: github-actions[bot] 2025-05-29 09:27:39 +00:00

View file

@ -61,12 +61,15 @@ if (WIN32)
add_compile_definitions(NAME_MAX=255)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
add_compile_options(-Wno-deprecated-declarations)
add_compile_definitions(_WIN32_WINNT=0x0A00)
endif()
if (MSVC)
add_cxx_compile_options(/W4)
# disable exceptions
add_cxx_compile_options(/EHs-)
# increase stack size reserve to match linux
add_link_options(/STACK:0x800000)
# disable floating-point expression contraction
add_cxx_compile_options(/fp:precise)
else()