summaryrefslogtreecommitdiff
path: root/Meta/Lagom
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-12-05 16:49:32 -0500
committerLinus Groh <mail@linusgroh.de>2022-12-05 22:24:50 +0000
commit14524ad0193cf72d7ac78245fbccb2643e4da1d0 (patch)
treed511a91968940ed84ee5f9a4f60365ba92ef68e4 /Meta/Lagom
parent312a41fddf05f0560be11ba1b354d45b957794e6 (diff)
downloadserenity-14524ad0193cf72d7ac78245fbccb2643e4da1d0.zip
Meta: Explicitly link generated compile-time data into the WASM JS REPL
Without this, we were in a weird state where LibTimeZone believed it had TZDB data, but that data wasn't actually available to it. This caused functions like JS::get_named_time_zone_offset_nanoseconds() to trip an assertion when entering "new Date();" into the REPL.
Diffstat (limited to 'Meta/Lagom')
-rw-r--r--Meta/Lagom/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt
index 4159c3095b..b6be033f5d 100644
--- a/Meta/Lagom/CMakeLists.txt
+++ b/Meta/Lagom/CMakeLists.txt
@@ -476,7 +476,7 @@ if (BUILD_LAGOM)
target_link_libraries(js LibCrypto LibJS LibLine LibLocale LibMain LibTextCodec Threads::Threads)
if (EMSCRIPTEN)
add_executable(libjs Wasm/js_repl.cpp)
- target_link_libraries(libjs LibJS)
+ target_link_libraries(libjs LibJS LibLocale LibTimeZone LibUnicode)
target_link_options(libjs PRIVATE
-sEXPORTED_FUNCTIONS=_initialize_repl,_execute
-sEXPORTED_RUNTIME_METHODS=allocateUTF8
@@ -703,7 +703,7 @@ if (BUILD_LAGOM)
if (APPLE)
if("arm64" IN_LIST CMAKE_OSX_ARCHITECTURES AND "x86_64" IN_LIST CMAKE_OSX_ARCHITECTURES)
set(CPACK_SYSTEM_NAME "macOS-universal2")
- else()
+ else()
set(CPACK_SYSTEM_NAME "macOS-${CMAKE_SYSTEM_PROCESSOR}")
endif()
else()