Skip to content
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

Fixes for native profiles and java invocations #39

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

galderz
Copy link
Member

@galderz galderz commented Nov 4, 2020

Closes #26 and #38

For #26, added an extra profile called native-noargs to make it easy to build native along with command line provided options. Example usages are:

  • Debugging closed world analysis: -Dquarkus.native.additional-build-args=-H:+PrintAnalysisCallTree
  • Step-by-step debugging of native executable production: -Dquarkus.native.additional-build-args=--debug-attach=8000
  • Profiling: -Dquarkus.native.additional-build-args=-H:-DeleteLocalSymbols,-H:+PreserveFramePointer

As it stands, any uses of -Dnative-noargs would also require adding --allow-incomplete-classpath to the examples above, e.g. -Dquarkus.native.additional-build-args=-H:+PrintAnalysisCallTree,--allow-incomplete-classpath.

For #38, made sure that java invocations are relative to JAVA_HOME.

* A workaround to keep `mvn ... -Dnative` working as expected,
while it easily offers a way to build native passing in
-Dquarkus.native.additional-build-args via command line.
* Additional build args via command line can help pass in
diverse debugging and profiling options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve native additional build args handling
1 participant