Skip to content

Commit

Permalink
fix: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
arianrhodsandlot committed Sep 2, 2023
1 parent 64a8efa commit bf8e4d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "retro-assembly-vendors",
"version": "1.16.0-202309022250",
"version": "1.16.0-202309022301",
"description": "Upstream files for Retro Assembly",
"keywords": [],
"author": "arianrhodsandlot",
Expand Down
19 changes: 10 additions & 9 deletions scripts/build-cores.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ function activate_em() {
fi
}

# remove early compiled outputs
cd "$retroarch_dir"
git clean -xf

# generate bitcode (.bc) files for each cores
cores=(a5200 beetle-lynx-libretro beetle-ngp-libretro beetle-vb-libretro beetle-wswan-libretro FBNeo Genesis-Plus-GX libretro-fceumm mgba prosystem-libretro snes9x stella2014-libretro)
for core in "${cores[@]}"; do
echo "building core $core ..."

# remove early compiled outputs
cd "$retroarch_dir"
git clean -xf

if [[ $core == 'FBNeo' ]]; then
activate_em '2.0.34'
else
Expand All @@ -54,12 +54,13 @@ for core in "${cores[@]}"; do
emmake make platform=emscripten
fi
mv ./*.bc "$retroarch_dist_dir"
done

echo "compiling bitcode files..."
# compile bitcode (.bc) files to wasm files
cd "$retroarch_dist_dir"
emmake ./dist-cores.sh emscripten
echo "compiling bitcode files..."

# compile bitcode (.bc) files to wasm files
cd "$retroarch_dist_dir"
emmake ./dist-cores.sh emscripten
done

# move compiled js/wasm files to our dist directory
core_dist_dir=$wd/dist/cores
Expand Down

0 comments on commit bf8e4d6

Please sign in to comment.