-
-
Notifications
You must be signed in to change notification settings - Fork 398
using multiple linking flags when overriding a build property #532
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
Comments
this quick fix artynet@e8920fc seems to solve my problem. Would you mind taking a look at that so, in case, I can process a pull request ? Thanks in advance |
@artynet I think |
At this very point we should think of writing something like that. Given two sets of custom building flags :
we can override the main build properties this way :
or
the first being a general override while the second a separated one for single set of flags. Defining :
would result in this merge :
where has no sense splitting an array by comma this time... |
Hello @masci, any update on this issue ? |
Ok for me to move on with a PR containing the comment linked above. Not sure I got the final example in your last comment: is that ok from a user perspective? Or is it a counter-example against changing that flag to Sorry I'm not a power Arduino user so I'm a bit slow at getting use cases 😛 |
Basically, we should tell the user to apply the switch for every single set of properties to override them. Comma separate values are not allowed anymore for multiple entries and, if passed that way, they won't be split as it should. The same issue might apply to the |
No longer allowing comma-separated values seems like a good solution here. There should usually not be any problem with just supplying the option multiple times, and using a comma to separate without any means to escape literal commas is problematic. We could just switch the meaning of the current An alternative approach would be to introduce a new |
@matthijskooijman that sounds right to me as well |
As described in the object I'd like to override the build properties of my custom boards.txt file leveraging all the benefits of the FreeRTOS samd21 library. For this reason, I have defined an empty build variable :
which is called at runtime with :
but just
-Wl
is set as its value so all which is located after the first comma is removed, altough enclosed within double quotes. I can see that because if I launch the command with the--show-properties
option the output is just :any hints about that ?
Environment
arduino-cli version
): 0.7.0 Commit: 3809fc3The text was updated successfully, but these errors were encountered: