File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ _llvm_project_revision=bda19768de03a0322c4094c8d0e00ad033268309
13
13
pkgrel=1
14
14
pkgdesc=" Compile C and C++ into highly-optimizable JavaScript for the web (mingw-w64)"
15
15
arch=(' any' )
16
- mingw_arch=(' ucrt64' ' clang64' )
16
+ mingw_arch=(' ucrt64' ' clang64' ' clangarm64 ' )
17
17
url=" https://emscripten.org"
18
18
msys2_repository_url=" https://github.com/emscripten-core/emscripten"
19
19
license=(' custom' )
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments