Conditionally pass debug flag to emcc
This commit is contained in:
parent
328dac0617
commit
c83e6831ea
@ -337,10 +337,12 @@ main :: proc() {
|
|||||||
)
|
)
|
||||||
run_cmd(cmd, "")
|
run_cmd(cmd, "")
|
||||||
|
|
||||||
|
wasm_debug_flag := opts.debug ? []string{"-g"} : []string{}
|
||||||
|
|
||||||
run_cmd(
|
run_cmd(
|
||||||
|
temp_concat(
|
||||||
{
|
{
|
||||||
"emcc" + EMSCRIPTEN_SHELL_EXT,
|
"emcc" + EMSCRIPTEN_SHELL_EXT,
|
||||||
"-g",
|
|
||||||
"-o",
|
"-o",
|
||||||
"bin/web/index.html",
|
"bin/web/index.html",
|
||||||
"bin/web/game.wasm.o",
|
"bin/web/game.wasm.o",
|
||||||
@ -356,6 +358,8 @@ main :: proc() {
|
|||||||
"--preload-file",
|
"--preload-file",
|
||||||
"assets",
|
"assets",
|
||||||
},
|
},
|
||||||
|
wasm_debug_flag,
|
||||||
|
),
|
||||||
"",
|
"",
|
||||||
)
|
)
|
||||||
remove_file("./bin/web/game.wasm.o")
|
remove_file("./bin/web/game.wasm.o")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user