Skip to content

Commit af55ba9

Browse files
chumersteve-s
authored andcommitted
Move native-image configuration to jar.
1 parent ee5cc88 commit af55ba9

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This file contains native-image arguments needed to build graalpython
2+
#
3+
JavaArgs = --add-exports org.graalvm.nativeimage/org.graalvm.nativeimage.impl=ALL-UNNAMED
4+
5+
Args = -H:MaxRuntimeCompileMethods=20000 \
6+
--initialize-at-build-time=com.oracle.graal.python,com.oracle.truffle.regex,jline,org.fusesource \
7+
--initialize-at-run-time=org.tukaani.xz \
8+
-H:ReflectionConfigurationResources=com/oracle/graal/python/niresources/reflect-config.json \
9+
-H:ResourceConfigurationResources=com/oracle/graal/python/niresources/resource-config.json \
10+
-H:JNIConfigurationResources=com/oracle/graal/python/niresources/jni-config.json \
11+
-H:Features=com.oracle.graal.python.BouncyCastleFeature
Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
# This file contains native-image arguments needed to build graalpython
2-
#
32

43
Requires = language:regex language:llvm language:nfi
54

65
JavaArgs = -Dpolyglot.image-build-time.PreinitializeContexts=python \
7-
--add-exports org.graalvm.sdk/org.graalvm.nativeimage.impl=ALL-UNNAMED
6+
--add-exports org.graalvm.nativeimage/org.graalvm.nativeimage.impl=ALL-UNNAMED
87

9-
Args = -H:MaxRuntimeCompileMethods=20000 \
10-
-R:StackSize=16777216 \
8+
Args = -R:StackSize=16777216 \
119
-H:+AddAllCharsets \
1210
-H:IncludeLocales=no,be,ro,ru,es,se,in,ka,hu,hr,bg,is,mk,da,nn,cs,sq,fr,pl,fo,bs,kl,fa,sv,it,uk,af,tg,ps,de \
13-
--initialize-at-build-time=com.oracle.graal.python,com.oracle.truffle.regex,jline,org.fusesource \
14-
--initialize-at-run-time=org.tukaani.xz \
15-
-H:ReflectionConfigurationResources=com/oracle/graal/python/niresources/reflect-config.json \
16-
-H:ResourceConfigurationResources=com/oracle/graal/python/niresources/resource-config.json \
17-
-H:JNIConfigurationResources=com/oracle/graal/python/niresources/jni-config.json \
18-
-H:Features=com.oracle.graal.python.BouncyCastleFeature

0 commit comments

Comments
 (0)