Skip to content

Commit

Permalink
remove Emscripten LEGACY_RUNTIME option linker option
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Dec 7, 2024
1 parent 782f4cf commit 27269e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fips_end_app()
target_compile_definitions(v6502r PRIVATE CHIP_6502)
target_include_directories(v6502r PRIVATE m6502)
if (FIPS_EMSCRIPTEN)
target_link_options(v6502r PUBLIC --shell-file ${CMAKE_SOURCE_DIR}/src/m6502/shell.html -sLEGACY_RUNTIME=1)
target_link_options(v6502r PUBLIC --shell-file ${CMAKE_SOURCE_DIR}/src/m6502/shell.html)
endif()

fips_begin_app(vz80r windowed)
Expand All @@ -59,7 +59,7 @@ fips_end_app()
target_compile_definitions(vz80r PRIVATE CHIP_Z80)
target_include_directories(vz80r PRIVATE z80)
if (FIPS_EMSCRIPTEN)
target_link_options(vz80r PUBLIC --shell-file ${CMAKE_SOURCE_DIR}/src/z80/shell.html -sLEGACY_RUNTIME=1)
target_link_options(vz80r PUBLIC --shell-file ${CMAKE_SOURCE_DIR}/src/z80/shell.html)
endif()

fips_begin_app(v2a03r windowed)
Expand All @@ -72,5 +72,5 @@ fips_end_app()
target_compile_definitions(v2a03r PRIVATE CHIP_2A03)
target_include_directories(v2a03r PRIVATE 2a03)
if (FIPS_EMSCRIPTEN)
target_link_options(v2a03r PUBLIC --shell-file ${CMAKE_SOURCE_DIR}/src/2a03/shell.html -sLEGACY_RUNTIME=1)
target_link_options(v2a03r PUBLIC --shell-file ${CMAKE_SOURCE_DIR}/src/2a03/shell.html)
endif()
2 changes: 2 additions & 0 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ static struct {
} util;

#if defined(__EMSCRIPTEN__)
EM_JS_DEPS(v6502r, "$ccall");

EM_JS(void, emsc_js_init, (void), {
Module['emsc_js_onload'] = emsc_js_onload;
});
Expand Down

0 comments on commit 27269e2

Please sign in to comment.