-
Notifications
You must be signed in to change notification settings - Fork 129
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
[abi_check
] Pass quoted cflags
to colcon
#776
base: master
Are you sure you want to change the base?
Conversation
The `colcon` invocation in `abi_process_workspace` was only providing the first of the two `cflags`, hence omitting `-Og`. To work around this, the flags must be enclosed by literal quotation marks. This commit escapes the flag specification to insert these literal quotes around the flags. Signed-off-by: Abrar Rahman Protyasha <[email protected]>
For reviewers: to verify, please run both |
Friendly ping for thoughts/review @mathias-luedtke |
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.
Thank you very much!
Your patch seems to fix it.
Could you add a test as well, so that it will stay this way in the future?
Signed-off-by: Abrar Rahman Protyasha <[email protected]>
@mathias-luedtke thanks for the review. I'm not sure how to test for this behavior though since its difficult to observe the abi_check interface behavior without parsing compiler command logs. Thoughts? |
You wrote:
So why not just check the compile_commands.json? For example with ' grep -q`. I might add this later. |
The
colcon
invocation inabi_process_workspace
was only providingthe first of the two
cflags
, hence omitting-Og
. To work aroundthis, the flags must be enclosed by literal quotation marks.
This commit escapes the flag specification to insert these literal
quotes around the flags.
Signed-off-by: Abrar Rahman Protyasha [email protected]