[abi_check] Pass quoted cflags to colcon#776
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 <aprotyas@u.rochester.edu>
|
For reviewers: to verify, please run both |
|
Friendly ping for thoughts/review @mathias-luedtke |
mathias-luedtke
left a comment
There was a problem hiding this comment.
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 <aprotyas@u.rochester.edu>
|
@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
colconinvocation inabi_process_workspacewas 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 aprotyas@u.rochester.edu