-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sandbox integration with GraalVM #244
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a
native-image
invocation occurs, there are actually two sandbox/temp roots in play: there is Bazel's sandbox and execroot, and the temp path created bynative-image
, where it places:Native Image's sandbox typically occurs under some directory in the pattern
/tmp/SVM-....
.After the compile,
native-image
copies these back to the output root, where they are surfaced to the Bazel developer. That's how it works now.However, in more complex circumstances, where a Native Image C API target is using external headers or other resources, the build's posture on disk can be quite confusing: when including a header or some other file, where is it coming from? The Bazel sandbox, or the Native Image sandbox? How does one get files from one sandbox to the other? And so on.
It would be awesome if these rules could integrate Bazel's sandbox with a managed temp path for
native-image
. This would provide the following benefits:native-image
compile state could be inspected in Bazel's sandbox, with files preserved via--sandbox_debug
The text was updated successfully, but these errors were encountered: