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

Native Image options parity #108

Open
Tracked by #24
sgammon opened this issue Sep 4, 2023 · 0 comments
Open
Tracked by #24

Native Image options parity #108

sgammon opened this issue Sep 4, 2023 · 0 comments
Assignees
Labels
feature Mainline feature work native-image Features and issues relating to the Native Image tool
Milestone

Comments

@sgammon
Copy link
Owner

sgammon commented Sep 4, 2023

There are a lot of options available to provide to native_image, including:

  • User's guest flags, properties, and module path flags
  • Flags used by the Native Image build process (i.e. tuning Points-To and so on)
  • Language and tool enablement flags
  • Selection of GC, compiler backend, libc implementation
  • C compiler and linker options
  • Resources, reflection configurations, JNI configurations
  • Java VM options, of several kinds
    • Runtime-default VM options
    • "Host" VM options
    • VM options for the Native Image build itself

Obviously, modeling all of these in Bazel is not feasibly, and would couple this rule set too hard to the native-image tool, which is evolving all the time. extra_args is available as an escape hatch for flags which have no typed integration, but can we do better?

Bazel has custom flags, configurations, transitions, and so on, which can be useful here.

Where Bazel itself provides built-in options which relate to native-image (i.e. copt, compilation_mode, and so on), issue #78 covers that functionality.

@sgammon sgammon added feature Mainline feature work native-image Features and issues relating to the Native Image tool labels Sep 4, 2023
@sgammon sgammon added this to the 1.0.0 milestone Sep 4, 2023
@sgammon sgammon self-assigned this Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Mainline feature work native-image Features and issues relating to the Native Image tool
Projects
Development

No branches or pull requests

1 participant