Skip to content

Commit

Permalink
build: fixed igniter cache config for cpp wasm (#8635)
Browse files Browse the repository at this point in the history
* Removed an old comment

* Fixed cache config cpp cmake wasm build
  • Loading branch information
frankkopp authored Apr 24, 2024
1 parent 1e433bf commit c989ce2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ macro(add_wasm_library)
# we use `cp` to copy the unoptimized wasm file to the output directory
set(WASM_OPT_FULL_CMD cp ${CMAKE_CURRENT_BINARY_DIR}/${ADD_WASM_LIBRARY_NAME}.wasm ${OUTPUT_DIRECTORY}/)
else()
# FIXME: 20231111 setting optimization to other than -o0 causes the wasm to crash
set(WASM_LD_ARGS -O2 --lto-O2 --strip-debug)
set(WASM_OPT_FLAGS -O1 --signext-lowering)
set(WASM_OPT_FULL_CMD ${CMAKE_WASM_OPTIMIZER} ${WASM_OPT_FLAGS} -o ${OUTPUT_DIRECTORY}/${ADD_WASM_LIBRARY_NAME}.wasm ${CMAKE_CURRENT_BINARY_DIR}/${ADD_WASM_LIBRARY_NAME}.wasm)
Expand Down
6 changes: 3 additions & 3 deletions igniter.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default new TaskOfTasks("all", [
[
'fbw-common/src/wasm/cpp-msfs-framework',
'fbw-common/src/wasm/extra-backend',
'fbw-common/src/wasm/fadec_common_v2',
'fbw-common/src/wasm/fadec_common',
'fbw-a32nx/src/wasm/extra-backend-a32nx',
'fbw-a32nx/src/wasm/fadec_a32nx',
'fbw-a32nx/out/flybywire-aircraft-a320-neo/SimObjects/AirPlanes/FlyByWire_A320_NEO/panel/extra-backend-a32nx.wasm',
Expand Down Expand Up @@ -209,11 +209,11 @@ export default new TaskOfTasks("all", [
[
'fbw-common/src/wasm/cpp-msfs-framework',
'fbw-common/src/wasm/extra-backend',
'fbw-common/src/wasm/fadec_common_v2',
'fbw-common/src/wasm/fadec_common',
'fbw-a380x/src/wasm/extra-backend-a380x',
'fbw-a380x/src/wasm/fadec_a380x',
'fbw-a380x/out/flybywire-aircraft-a380-842/SimObjects/AirPlanes/FlyByWire_A380_842/panel/extra-backend-a380x.wasm',
'fbw-a32nx/out/flybywire-aircraft-a380-842/SimObjects/AirPlanes/FlyByWire_A380_842/panel/fadec-a380x.wasm'
'fbw-a380x/out/flybywire-aircraft-a380-842/SimObjects/AirPlanes/FlyByWire_A380_842/panel/fadec-a380x.wasm'
]),
], true),

Expand Down

0 comments on commit c989ce2

Please sign in to comment.