Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

With this change, image building will fail as early as possible when trying to perform a layered image build on a platform where we currently do not support layered image building. E.g. when running

native-image -o libtestjavabaselayer -H:+UnlockExperimentalVMOptions -H:LayerCreate=base-layer.nil,module=java.base

on an aarch64 Mac you will now get:

========================================================================================================================
GraalVM Native Image: Generating 'libtestjavabaselayer.so' (image layer)...
========================================================================================================================
[1/8] Initializing...
                                                                                    (0.0s @ 0.24GB)
Error: Layer creation option '-H:LayerCreate=base-layer.nil,module=java.base' from command line is not supported when building for platform darwin/aarch64.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 17, 2025
@graalvmbot graalvmbot merged commit 40ab80b into master Jul 18, 2025
12 of 13 checks passed
@graalvmbot graalvmbot deleted the paw/GR-62502 branch July 18, 2025 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants