-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
support extra flags #452
base: master
Are you sure you want to change the base?
support extra flags #452
Conversation
Example of where I'd like this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doc = ("Extra compile_flags, added after default values. " + | ||
"`{toolchain_path_prefix}` in the flags will be substituted by the path " + | ||
"to the root LLVM distribution directory. Provide one list for each " + | ||
"target OS and arch pair you want to override " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
override
is misleading here, we are just adding flags.
If you just want to add a single flag (that is per platform) and leave the rest of the default flags, you have to copy out all the existing flags and add it to what you have. Instead support just adding an extra flag that is appended to the default flags.
The alternative to all the extra flags is a way to "inject" the initial flags when providing the override flags, maybe via some magic value like $ORIGINAL_VALUES? |
If you just want to add a single flag (that is per platform) and leave the rest of the default
flags, you have to copy out all the existing flags and add it to what
you have. Instead support just adding an extra flag that is appended to
the default flags.