-
Notifications
You must be signed in to change notification settings - Fork 3k
Put quotes around include files #4468
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
Conversation
@moonchen Have you confirmed that this input is accepted by all three toolchains? |
@moonchen bump |
Let's run CI on this to confirm that this would not fail for any toolchain, as this should be exercised there. |
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputBuild failed! |
@moonchen IAR failed for all targets, looks like this is not supported there. Locally, it fails for any assembly file as:
|
Instead of wrapping in quotes, what about escaping the spaces? |
Worth a shot. @moonchen do you have access to the IAR compiler? |
@moonchen I gave it a quick whirl. diff --git i/tools/toolchains/__init__.py w/tools/toolchains/__init__.py
index c572fe96a..8aef56b22 100644
--- i/tools/toolchains/__init__.py
+++ w/tools/toolchains/__init__.py
@@ -740,7 +740,7 @@ class mbedToolchain:
c = c.replace("\\", "/")
if self.CHROOT:
c = c.replace(self.CHROOT, '')
- cmd_list.append('-I%s' % c)
+ cmd_list.append('"-I%s"' % c)
string = " ".join(cmd_list)
f.write(string)
return include_file does not error in that way |
@theotherjimmy quoting the whole thing worked for me on gcc. |
Then let's use that commit. |
This fixes a problem when the path to include files have spaces. See ARMmbed/mbed-os-example-uvisor#31 for an example of this problem. Signed-off-by: Mo Chen <[email protected]>
Amended to use the new patch. |
@moonchen I already did that. |
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
These timer tests need to be way less flaky. /morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
retest uvisor |
Hi |
$ python tools/build.py -m NUCLEO_F411RE -t IAR -vv |
@jeromecoutant Thanks for reporting, I'll check what is going on, I am able to reproduce it, and will cehck what CI did for this PR. It is not this PR, If you revert it, you get the same ToolExpection, investigating |
When I revert it, it works for me |
I sent a fix, please review it #4749 |
This fixes a problem when the path to include files have spaces.
See ARMmbed/mbed-os-example-uvisor#31 for an
example of this problem.
Signed-off-by: Mo Chen [email protected]