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

Distinguish target and exec configuration for build mode #37

Closed
Tracked by #1
aherrmann opened this issue Feb 26, 2023 · 1 comment
Closed
Tracked by #1

Distinguish target and exec configuration for build mode #37

aherrmann opened this issue Feb 26, 2023 · 1 comment

Comments

@aherrmann
Copy link
Owner

aherrmann commented Feb 26, 2023

Ideally Bazel would have native support for this, see bazelbuild/bazel#13048.

Until then one can work around this by detecting a tool configuration as motivated in bazelbuild/bazel#14444 (comment) using the approach described in the Bazel code base here in the settings rule and switch between separate mode and exec_mode flags.

However, such a workaround breaks config_settings such as defined here. As they cannot determine whether we're in a target or exec configuration and cannot switch to the appropriate flag accordingly. One workaround to that would be to split the config_settings into target_debug and exec_debug, etc. However, this means that downstream users would have to know which setting to switch on, which doesn't work for targets used in both an exec and a target configuration.

Until a concrete need arises, it's best to wait for Bazel to have builtin support for this feature.

@aherrmann aherrmann mentioned this issue Feb 26, 2023
63 tasks
@aherrmann aherrmann modified the milestone: version 0.1 Feb 26, 2023
@aherrmann
Copy link
Owner Author

Closing until a concrete need arises, with the preference to wait for Bazel to have builtin support.

@aherrmann aherrmann closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2023
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

No branches or pull requests

1 participant