Skip to content

Commit 9d7bab9

Browse files
hmartinez82podsvirov
authored andcommitted
emscripten: Enable aaarch64 builds
1 parent 47e4c73 commit 9d7bab9

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

mingw-w64-emscripten/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ _llvm_project_revision=bda19768de03a0322c4094c8d0e00ad033268309
1313
pkgrel=1
1414
pkgdesc="Compile C and C++ into highly-optimizable JavaScript for the web (mingw-w64)"
1515
arch=('any')
16-
mingw_arch=('ucrt64' 'clang64')
16+
mingw_arch=('ucrt64' 'clang64' 'clangarm64')
1717
url="https://emscripten.org"
1818
msys2_repository_url="https://github.com/emscripten-core/emscripten"
1919
license=('custom')
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
post_install() {
2+
echo "You need to login again or 'source /clangarm64/etc/profile.d/emscripten.sh'"
3+
echo "in your already running shells to be able to use emscripten."
4+
# Install config file
5+
WIN_PATH=$(cygpath -m /clangarm64)
6+
rm -rf ${WIN_PATH}/lib/emscripten/.emscripten
7+
cat > ${WIN_PATH}/lib/emscripten/.emscripten <<EOF
8+
# .emscripten file for MSYS2 MinGW
9+
10+
import os
11+
LLVM_ROOT='${WIN_PATH}/opt/emscripten-llvm/bin'
12+
NODE_JS='${WIN_PATH}/bin/node.exe'
13+
EOF
14+
}
15+
16+
post_upgrade() {
17+
echo "You may need to manually clear your emscripten cache as clang may not link"
18+
echo "the new library versions with cached data properly. Use this command:"
19+
echo "$ emcc --clear-cache"
20+
echo "You may also need to delete ~/.emscripten if emscripten complains about old paths"
21+
echo "or executables not found."
22+
}

0 commit comments

Comments
 (0)