-
-
Notifications
You must be signed in to change notification settings - Fork 783
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
Allow target:on_config to be used for general configuration #5831
Comments
no, on_config is only for fallback, if no specific platform is matched, on_config without platform will be called. for windows:
for linux:
like this if linux then
-- on_config("linux")
elseif macosx then
-- on_config("macosx")
else
-- on_config
end |
thats what i figured. would it be possible to add my desired behaviour or make an alternative ("before_config()") ? I would like to avoid if-else chains |
this? #5813 |
Can these functions be added for a target? |
no, only for rule |
Is your feature request related to a problem? Please describe.
We can use
on_config("windows")
andon_config("linux")
to specify platform (and arch) specific configuration.however,
on_config()
without a platform/arch is not called when one of theon_config
matchesDescribe the solution you'd like
I would like to have
on_config
without parameters to be used for general configuration:Describe alternatives you've considered
Additional context
No response
The text was updated successfully, but these errors were encountered: