-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_native.bat
22 lines (20 loc) · 1.89 KB
/
build_native.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@echo off
REM call gradlew.bat clean jar shadowJar
REM %GRAALVM_HOME%\bin\native-image -H:+ReportUnsupportedElementsAtRuntime --macro:truffle --no-fallback -cp chi-launcher\build\libs\chi-launcher-1.0.jar;chi-truffle-language\build\libs\chi-truffle-language-1.0-all.jar;chi-compiler\build\libs\chi-compiler-1.0.jar gh.marad.chi.launcher.MainKt chi --initialize-at-build-time=gh.marad.chi.truffle.runtime.ChiFunctionGen
REM %GRAALVM_HOME%\bin\native-image -H:+ReportUnsupportedElementsAtRuntime --macro:truffle --no-fallback -cp chi-launcher\build\libs\chi-launcher-1.0.jar;chi-truffle-language\build\libs\chi-truffle-language-1.0.jar;chi-compiler\build\libs\chi-compiler-1.0.jar;native\kotlin-stdlib-1.6.21.jar gh.marad.chi.truffle.Main chi --initialize-at-build-time=gh.marad.chi.truffle.runtime.ChiFunctionGen
REM %GRAALVM_HOME%\bin\native-image -H:+ReportUnsupportedElementsAtRuntime --macro:truffle --no-fallback -cp chi-launcher\build\libs\chi-launcher-1.0.jar;chi-truffle-language\build\libs\chi-truffle-language-1.0.jar;chi-compiler\build\libs\chi-compiler-1.0.jar gh.marad.chi.truffle.Main chi --initialize-at-build-time=gh.marad.chi.truffle.runtime.ChiFunctionGen
REM call gradlew.bat clean chi-launcher:shadowJar
call gradlew.bat chi-launcher:shadowJar
%GRAALVM_HOME%\bin\native-image ^
-H:+ReportUnsupportedElementsAtRuntime ^
-H:ReflectionConfigurationFiles=native/reflectionconfig.json ^
-H:DynamicProxyConfigurationFiles=native/proxyconfig.json ^
--macro:truffle ^
--language:nfi ^
--no-fallback ^
--enable-http ^
--enable-https ^
-cp chi-launcher\build\libs\chi-launcher-1.0-all.jar ^
-H:Class=gh.marad.chi.launcher.MainKt ^
-H:Name=chi ^
--initialize-at-build-time=gh.marad.chi.truffle.runtime.ChiFunctionGen,gh.marad.chi.truffle.runtime.ChiValueGen,gh.marad.chi.truffle.runtime.ChiArrayGen,gh.marad.chi.truffle.runtime.ChiObjectGen,gh.marad.chi.truffle.runtime.UnitGen