Skip to content

Commit c4d72cd

Browse files
author
Guy Bedford
authored
fix: debug build output (#200)
1 parent 59ee329 commit c4d72cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ set(OUTPUT_NAME_DEBUG "starlingmonkey_embedding.debug.wasm")
2727
set(OUTPUT_NAME_WEVAL "starlingmonkey_embedding_weval.wasm")
2828

2929
# Set the appropriate name based on current configuration
30-
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
30+
if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
3131
set(OUTPUT_FILENAME ${OUTPUT_NAME_DEBUG})
3232
elseif(WEVAL)
3333
set(OUTPUT_FILENAME ${OUTPUT_NAME_WEVAL})

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ JCO ?= ./node_modules/.bin/jco
33
STARLINGMONKEY_SRC ?= StarlingMonkey
44

55
ifndef JCO
6-
JCO = $(error No jco in PATH. Run npm install -g @bytecodealliance/jco)
6+
JCO = $(error No jco found. Run npm install.)
77
endif
88

99
# ifndef WASM_OPT
@@ -52,3 +52,4 @@ clean:
5252
rm -r obj
5353
rm lib/spidermonkey-embedding-splicer.js
5454
rm lib/starlingmonkey_embedding.wasm
55+
rm lib/starlingmonkey_embedding.debug.wasm

0 commit comments

Comments
 (0)