-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47e4c73
commit 9d7bab9
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
post_install() { | ||
echo "You need to login again or 'source /clangarm64/etc/profile.d/emscripten.sh'" | ||
echo "in your already running shells to be able to use emscripten." | ||
# Install config file | ||
WIN_PATH=$(cygpath -m /clangarm64) | ||
rm -rf ${WIN_PATH}/lib/emscripten/.emscripten | ||
cat > ${WIN_PATH}/lib/emscripten/.emscripten <<EOF | ||
# .emscripten file for MSYS2 MinGW | ||
|
||
import os | ||
LLVM_ROOT='${WIN_PATH}/opt/emscripten-llvm/bin' | ||
NODE_JS='${WIN_PATH}/bin/node.exe' | ||
EOF | ||
} | ||
|
||
post_upgrade() { | ||
echo "You may need to manually clear your emscripten cache as clang may not link" | ||
echo "the new library versions with cached data properly. Use this command:" | ||
echo "$ emcc --clear-cache" | ||
echo "You may also need to delete ~/.emscripten if emscripten complains about old paths" | ||
echo "or executables not found." | ||
} |