Skip to content

Commit

Permalink
Source map generation testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Xevion committed Apr 16, 2024
1 parent 29a3492 commit 0dfb281
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
rustflags = [
# "-O", "-C", "link-args=-O2 --profiling",
#"-C", "link-args=-O3 --closure 1",
# "-C", "link-args=-g -gsource-map",
"-C", "link-args=-sASYNCIFY -sALLOW_MEMORY_GROWTH=1",
# "-C", "link-args=-sALLOW_MEMORY_GROWTH=1",
"-C", "link-args=-sUSE_SDL=2 -sUSE_SDL_IMAGE=2 -sUSE_SDL_TTF=2 -sSDL2_IMAGE_FORMATS=['png']",
Expand Down
5 changes: 3 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ cp assets/index.html dist
cp $output_folder/pacman.wasm dist
cp $output_folder/pacman.js dist
# only if .data file exists
if [ -f $output_folder/deps/pacman.data ]; then
cp $output_folder/deps/pacman.data dist
cp $output_folder/deps/pacman.data dist
if [ -f $output_folder/pacman.wasm.map ]; then
cp $output_folder/pacman.wasm.map dist
fi

if [ "$serve" = 'true' ]; then
Expand Down

0 comments on commit 0dfb281

Please sign in to comment.