Skip to content

Commit 96df78a

Browse files
committed
Add env files for building GraalPy standalones in various configurations
* These env files only build the GraalPy standalone and nothing else.
1 parent b6763d1 commit 96df78a

File tree

9 files changed

+63
-0
lines changed

9 files changed

+63
-0
lines changed

mx.graalpython/env_files.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Here is how the various env files relate to each other:
2+
* `jvm`
3+
* `jvm-ce`: + GraalVM Community Compiler
4+
* `jvm-ce-libgraal`: + libgraal
5+
* `native-ce`: + libpythonvm + `Truffle Macro`
6+
* `jvm-ee`: + Oracle GraalVM Compiler + `Truffle enterprise` + license + `LLVM Runtime Native Enterprise`
7+
* `jvm-ee-libgraal`: + libgraal
8+
* `native-ee`: + libpythonvm + `Truffle Macro Enterprise` + Native Image G1
9+
* `native-ee-aux`: + `AuxiliaryEngineCache`, - Native Image G1 (currently incompatible)
10+
11+
They all build the GraalPy standalone and nothing else to optimize build time.

mx.graalpython/jvm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
GRAALVM_SKIP_ARCHIVE=true
2+
DYNAMIC_IMPORTS=/tools
3+
COMPONENTS=GraalVM Python,suite:tools
4+
INSTALLABLES=GraalVM Python
5+
BUILD_TARGETS=GRAALVM_STANDALONES

mx.graalpython/jvm-ce

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
GRAALVM_SKIP_ARCHIVE=true
2+
DYNAMIC_IMPORTS=/tools,/compiler
3+
COMPONENTS=GraalVM Python,suite:tools,GraalVM compiler
4+
INSTALLABLES=GraalVM Python
5+
BUILD_TARGETS=GRAALVM_STANDALONES

mx.graalpython/jvm-ce-libgraal

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
GRAALVM_SKIP_ARCHIVE=true
2+
DYNAMIC_IMPORTS=/tools,/compiler,/substratevm
3+
COMPONENTS=GraalVM Python,suite:tools,GraalVM compiler,SubstrateVM,LibGraal
4+
NATIVE_IMAGES=lib:jvmcicompiler
5+
INSTALLABLES=GraalVM Python
6+
BUILD_TARGETS=GRAALVM_STANDALONES

mx.graalpython/jvm-ee

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
GRAALVM_SKIP_ARCHIVE=true
2+
DYNAMIC_IMPORTS=/tools,/graalpython-enterprise,/graal-enterprise,/vm-enterprise,/sulong-managed,/substratevm-enterprise
3+
COMPONENTS=GraalVM Python,suite:tools,GraalVM enterprise compiler,Truffle enterprise,GraalVM enterprise license files,LLVM Runtime Native Enterprise,SubstrateVM Enterprise
4+
NATIVE_IMAGES=false
5+
INSTALLABLES=GraalVM Python
6+
BUILD_TARGETS=GRAALVM_STANDALONES
7+
# NOTE: SVM EE is added as a workaround to tell the JVM standalone to be EE

mx.graalpython/jvm-ee-libgraal

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
GRAALVM_SKIP_ARCHIVE=true
2+
DYNAMIC_IMPORTS=/tools,/graalpython-enterprise,/graal-enterprise,/vm-enterprise,/sulong-managed,/substratevm-enterprise
3+
COMPONENTS=GraalVM Python,suite:tools,GraalVM enterprise compiler,Truffle enterprise,GraalVM enterprise license files,LLVM Runtime Native Enterprise,SubstrateVM Enterprise,LibGraal Enterprise
4+
NATIVE_IMAGES=lib:jvmcicompiler
5+
INSTALLABLES=GraalVM Python
6+
BUILD_TARGETS=GRAALVM_STANDALONES

mx.graalpython/native-ce

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
GRAALVM_SKIP_ARCHIVE=true
2+
DYNAMIC_IMPORTS=/tools,/compiler,/substratevm
3+
COMPONENTS=GraalVM Python,suite:tools,GraalVM compiler,SubstrateVM,Truffle Macro
4+
NATIVE_IMAGES=lib:pythonvm
5+
GENERATE_DEBUGINFO=false
6+
INSTALLABLES=GraalVM Python
7+
BUILD_TARGETS=GRAALVM_STANDALONES

mx.graalpython/native-ee

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
GRAALVM_SKIP_ARCHIVE=true
2+
DYNAMIC_IMPORTS=/tools,/graalpython-enterprise,/graal-enterprise,/vm-enterprise,/sulong-managed,/substratevm-enterprise
3+
COMPONENTS=GraalVM Python,suite:tools,GraalVM enterprise compiler,Truffle enterprise,GraalVM enterprise license files,LLVM Runtime Native Enterprise,SubstrateVM Enterprise,Truffle Macro Enterprise
4+
NATIVE_IMAGES=lib:pythonvm
5+
GENERATE_DEBUGINFO=false
6+
INSTALLABLES=GraalVM Python
7+
BUILD_TARGETS=GRAALVM_STANDALONES

mx.graalpython/native-ee-aux

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
GRAALVM_SKIP_ARCHIVE=true
2+
DYNAMIC_IMPORTS=/tools,/graalpython-enterprise,/graal-enterprise,/vm-enterprise,/sulong-managed,/substratevm-enterprise
3+
COMPONENTS=GraalVM Python,suite:tools,GraalVM enterprise compiler,Truffle enterprise,GraalVM enterprise license files,LLVM Runtime Native Enterprise,SubstrateVM Enterprise,Truffle Macro Enterprise
4+
NATIVE_IMAGES=lib:pythonvm
5+
EXTRA_IMAGE_BUILDER_ARGUMENTS=pythonvm:-H:+AuxiliaryEngineCache pythonvm:-H:ReservedAuxiliaryImageBytes=1073741824
6+
GENERATE_DEBUGINFO=false
7+
NATIVE_IMAGE_AUXILIARY_ENGINE_CACHE=true
8+
INSTALLABLES=GraalVM Python
9+
BUILD_TARGETS=GRAALVM_STANDALONES

0 commit comments

Comments
 (0)