Skip to content

Commit

Permalink
do the binaryen extra pass while building
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Oct 20, 2024
1 parent f0b1eb2 commit 27a0abf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ jobs:
npm install --skip-proj-native --build-wasm-from-source --verbose --foreground-scripts \
${{ inputs.enable_tiff && '--enable-tiff' || '--disable-tiff' }} \
${{ inputs.inline_projdb && '--enable-inline-projdb' || '--disable-inline-projdb' }}
${EMSDK}/upstream/bin/wasm-opt --enable-bulk-memory --enable-threads --converge -Oz lib/binding/emscripten-wasm32/proj.wasm -o proj.opt.wasm
mv proj.opt.wasm lib/binding/emscripten-wasm32/proj.wasm
if: inputs.wasm

- name: Build the native ASAN version
Expand Down
2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ wasm = meson.get_compiler('cpp').get_id() == 'emscripten'
if wasm
add_project_arguments([ '-Wno-documentation' ], language: [ 'cpp', 'c' ])
add_project_arguments([ '-Wno-potentially-evaluated-expression' ], language: [ 'cpp' ])
add_project_arguments([ '-sBINARYEN_EXTRA_PASSES="--enable-bulk-memory,--enable-threads,--converge,-Oz"' ], language: [ 'cpp', 'c' ])
add_project_link_arguments([ '-sBINARYEN_EXTRA_PASSES="--enable-bulk-memory,--enable-threads,--converge,-Oz"' ], language: [ 'cpp', 'c' ])
endif

# Build PROJ and its dependencies
Expand Down

0 comments on commit 27a0abf

Please sign in to comment.