Skip to content

Commit

Permalink
[SH]CMakeLists.txt: disable Boost.Context under Emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
tmikov committed Dec 23, 2024
1 parent 559b19b commit 3aec9b6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,6 @@ set(ANDROID_LINUX_PERF_PATH ""
set(HERMES_MSVC_MP ON CACHE STRING
"Enable /MP in MSVC for parallel builds")

set(EMSCRIPTEN_FASTCOMP OFF CACHE BOOL
"Emscripten is using the fastcomp backend instead of the LLVM one")

set(HERMES_ENABLE_INTL OFF CACHE BOOL
"Enable JS Intl support (WIP)")

Expand Down Expand Up @@ -532,7 +529,7 @@ if (HERMES_ALLOW_BOOST_CONTEXT EQUAL 0)
elseif (HERMES_ALLOW_BOOST_CONTEXT EQUAL 2)
set(HERMES_USE_BOOST_CONTEXT 1)
elseif (HERMES_ALLOW_BOOST_CONTEXT EQUAL 1)
if (HERMES_ENABLE_ADDRESS_SANITIZER)
if (HERMES_ENABLE_ADDRESS_SANITIZER OR EMSCRIPTEN)
set(HERMES_USE_BOOST_CONTEXT 0)
else()
set(HERMES_USE_BOOST_CONTEXT 1)
Expand Down

0 comments on commit 3aec9b6

Please sign in to comment.