-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy TruffleSqueak as language library
- Loading branch information
Showing
8 changed files
with
91 additions
and
19 deletions.
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
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,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
source="${BASH_SOURCE[0]}" | ||
while [ -h "$source" ] ; do | ||
prev_source="$source" | ||
source="$(readlink "$source")"; | ||
if [[ "$source" != /* ]]; then | ||
# if the link was relative, it was relative to where it came from | ||
dir="$( cd -P "$( dirname "$prev_source" )" && pwd )" | ||
source="$dir/$source" | ||
fi | ||
done | ||
bin_dir="$( cd -P "$( dirname "$source" )" && pwd )" | ||
|
||
# Increase stack size (`-XX:ThreadStackSize=64M` not working) | ||
extra_args=("--vm.Xss64M") | ||
# Make ReflectionUtils work | ||
extra_args+=("--vm.-add-exports=java.base/jdk.internal.module=ALL-UNNAMED") | ||
# Make Truffle.getRuntime() accessible for VM introspection | ||
extra_args+=("--vm.-add-opens=jdk.internal.vm.compiler/org.graalvm.compiler.truffle.runtime=ALL-UNNAMED") | ||
# Enable access to HostObject and others | ||
extra_args+=("--vm.-add-opens=org.graalvm.truffle/com.oracle.truffle.host=ALL-UNNAMED") | ||
# Enable access to Truffle's SourceSection (for retrieving sources through interop) | ||
extra_args+=("--vm.-add-opens=org.graalvm.truffle/com.oracle.truffle.api.source=ALL-UNNAMED") | ||
|
||
if [ "$(uname -s)" == "Darwin" ]; then | ||
extra_args+=("--vm.Xdock:name=TruffleSqueak") | ||
fi | ||
|
||
exec "${bin_dir}/trufflesqueak-launcher" "${extra_args[@]}" "$@" |
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,35 @@ | ||
@echo off | ||
|
||
setlocal enabledelayedexpansion | ||
|
||
echo %* | findstr = >nul && ( | ||
echo Warning: the '=' character in program arguments is not fully supported. | ||
echo Make sure that command line arguments using it are wrapped in double quotes. | ||
echo Example: | ||
echo "--vm.Dfoo=bar" | ||
echo. | ||
) | ||
|
||
set "tsl_exe=%~dp0trufflesqueak-launcher.exe" | ||
if not exist "%tsl_exe%" ( | ||
echo Error: Cannot find '%TSL_EXE%' | ||
exit /b 1 | ||
) | ||
|
||
@REM Increase stack size (`-XX:ThreadStackSize=64M` not working) | ||
set extra_args=--vm.Xss64M | ||
@REM Make ReflectionUtils work | ||
set extra_args=%extra_args% --vm.-add-exports=java.base/jdk.internal.module=ALL-UNNAMED | ||
@REM Make Truffle.getRuntime() accessible for VM introspection | ||
set extra_args=%extra_args% --vm.-add-opens=jdk.internal.vm.compiler/org.graalvm.compiler.truffle.runtime=ALL-UNNAMED | ||
@REM Enable access to HostObject and others | ||
set extra_args=%extra_args% --vm.-add-opens=org.graalvm.truff22le/com.oracle.truffle.host=ALL-UNNAMED | ||
@REM Enable access to Truffle's SourceSection (for retrieving sources through interop) | ||
set extra_args=%extra_args% --vm.-add-opens=org.graalvm.truffle/com.oracle.truffle.api.source=ALL-UNNAMED | ||
|
||
|
||
if "%VERBOSE_GRAALVM_LAUNCHERS%"=="true" echo on | ||
|
||
"%tsl_exe%" %extra_args% %* | ||
|
||
exit /b %errorlevel% |
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
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