Skip to content

Commit

Permalink
CMakeLists.txt: disable Boost.Context under Emscripten
Browse files Browse the repository at this point in the history
Summary: .

Reviewed By: fbmal7

Differential Revision: D67594747

fbshipit-source-id: fffc42e8bb52256fa3eb4c9a979d126736ac247f
  • Loading branch information
Tzvetan Mikov authored and facebook-github-bot committed Dec 23, 2024
1 parent 87b8f12 commit c8a72e4
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 c8a72e4

Please sign in to comment.