Skip to content

Commit 6251654

Browse files
author
Guy Bedford
committed
pr feedback
1 parent f7f5c9b commit 6251654

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed

CMakeLists.txt

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -55,31 +55,23 @@ if (ENABLE_WPT)
5555
include("tests/wpt-harness/wpt.cmake")
5656
endif()
5757

58+
set(SOURCES
59+
runtime/js.cpp
60+
runtime/allocator.cpp
61+
runtime/encode.cpp
62+
runtime/decode.cpp
63+
runtime/engine.cpp
64+
runtime/event_loop.cpp
65+
runtime/builtin.cpp
66+
runtime/script_loader.cpp
67+
)
68+
5869
if (ENABLE_JS_DEBUGGER)
59-
add_executable(starling-raw.wasm
60-
runtime/js.cpp
61-
runtime/allocator.cpp
62-
runtime/encode.cpp
63-
runtime/decode.cpp
64-
runtime/engine.cpp
65-
runtime/event_loop.cpp
66-
runtime/builtin.cpp
67-
runtime/script_loader.cpp
68-
runtime/debugger.cpp
69-
)
70-
else()
71-
add_executable(starling-raw.wasm
72-
runtime/js.cpp
73-
runtime/allocator.cpp
74-
runtime/encode.cpp
75-
runtime/decode.cpp
76-
runtime/engine.cpp
77-
runtime/event_loop.cpp
78-
runtime/builtin.cpp
79-
runtime/script_loader.cpp
80-
)
70+
list(APPEND SOURCES runtime/debugger.cpp)
8171
endif()
8272

73+
add_executable(starling-raw.wasm ${SOURCES})
74+
8375
target_link_libraries(starling-raw.wasm PRIVATE host_api extension_api builtins spidermonkey rust-crates)
8476

8577
option(USE_WASM_OPT "use wasm-opt to optimize the StarlingMonkey binary" ON)

0 commit comments

Comments
 (0)