Skip to content

Commit

Permalink
fix: Reduce size of the emscriten wasm binary
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoraggi committed Jun 7, 2023
1 parent d9a698d commit 3122c4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
cmake . \
-Bbuild \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DLLVM_ROOT=$(brew --prefix llvm)
cmake --build build
Expand Down
4 changes: 2 additions & 2 deletions packages/cxx-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"prepack": "npm run copy:readme",
"docker": "docker run $DOCKER_EXTRA_OPTS --rm -v $PWD/../../:/src:Z --user `id -u` emscripten/emsdk:3.1.39",
"docker:shell": "DOCKER_EXTRA_OPTS=-it npm run docker",
"configure:wasm": "npm run docker -- emcmake cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=1 -Bbuild.em .",
"configure:wasm": "npm run docker -- emcmake cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=1 -Bbuild.em .",
"build:wasm": "npm run docker -- cmake --build build.em -- -j4",
"copy:wasm": "copyfiles -V -f ../../build.em/src/js/cxx-js.* dist",
"copy:readme": "copyfiles -V -f ../../README.md ../../CHANGELOG.md ."
Expand Down Expand Up @@ -40,4 +40,4 @@
"copyfiles": "^2.4.1",
"typescript": "^5.0.4"
}
}
}

0 comments on commit 3122c4d

Please sign in to comment.