Skip to content

Commit

Permalink
fix: optim
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben committed Mar 22, 2024
1 parent 5b154ca commit 32e7401
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cd ${SOURCE}

mkdir picotool/build && cd picotool/build
export PICO_SDK_PATH=${SOURCE}/pico-sdk
emcmake cmake .. -DLIBUSB_INCLUDE_DIR=${SOURCE}/libusb/build/include/libusb-1.0 -DLIBUSB_LIBRARIES=${SOURCE}/libusb/build/lib/libusb-1.0.a -DCMAKE_EXE_LINKER_FLAGS='--bind -s ASYNCIFY -s ALLOW_MEMORY_GROWTH -s INVOKE_RUN=0 -s EXPORTED_RUNTIME_METHODS="[\"callMain\", \"FS\"]" -pthread -mbulk-memory -s EXPORT_ES6 -s MODULARIZE=1 -sFORCE_FILESYSTEM -sEXIT_RUNTIME=1 -O1' -DCMAKE_C_FLAGS="-pthread -mbulk-memory" -DCMAKE_CXX_FLAGS="-pthread -mbulk-memory"
emcmake cmake .. -DLIBUSB_INCLUDE_DIR=${SOURCE}/libusb/build/include/libusb-1.0 -DLIBUSB_LIBRARIES=${SOURCE}/libusb/build/lib/libusb-1.0.a -DCMAKE_EXE_LINKER_FLAGS='--bind -s ASYNCIFY -s ALLOW_MEMORY_GROWTH -s INVOKE_RUN=0 -s EXPORTED_RUNTIME_METHODS="[\"callMain\", \"FS\"]" -pthread -mbulk-memory -s EXPORT_ES6 -s MODULARIZE=1 -sFORCE_FILESYSTEM -sEXIT_RUNTIME=1' -DCMAKE_C_FLAGS="-pthread -mbulk-memory" -DCMAKE_CXX_FLAGS="-pthread -mbulk-memory"
emmake make -j8

cd ${SOURCE}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leaphy-robotics/picotool-wasm",
"version": "1.0.1",
"version": "1.0.2",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineConfig({
esbuildPlugins: [
replace({
patterns: [
[/ENVIRONMENT_IS_NODE(?! =)/g, 'false'],
[/ENVIRONMENT_IS_NODE(?!=)/g, 'false'],
]
})
]
Expand Down

0 comments on commit 32e7401

Please sign in to comment.