-
Notifications
You must be signed in to change notification settings - Fork 103
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
Problems with spaces when setting tool flag options #51
Comments
Hi @MarkHillHuawei , Thanks for raising this. I'll inviestigate. Best wishes, Jeremy |
PaoloS02
pushed a commit
to PaoloS02/embench-iot
that referenced
this issue
Apr 20, 2020
The split separator cause the parsing of the arguments to fail if multiple spaces are used. Without specifying the separator the parsing is more robust. Files changed: * build_all.py: removed split space separator.
jeremybennett
pushed a commit
that referenced
this issue
Apr 20, 2020
The split separator cause the parsing of the arguments to fail if multiple spaces are used. Without specifying the separator the parsing is more robust. Files changed: * build_all.py: removed split space separator. Co-authored-by: Paolo Savini <paolo.savini@gmail.com>
Thank you for the tip @MarkHillHuawei , Kind regards, |
The fix is on master. I would close this issue. Thank you again. |
widlarizer
pushed a commit
to widlarizer/embench-iot
that referenced
this issue
Nov 29, 2023
Portlayer & documentaiton update
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have noticed that if a user puts extra spaces in their tool options, for example, --cflags “-Os–mtune=size” instead of --cflags “-Os–mtune=size” the build fails complaining about a non existent file. This can be a bit confusing, it certainly confused me until I realized what was going on. This is due to the split(sep=’ ‘) in build_all.py creating empty elements in the cflags list e.g. [ ‘-Os’, ‘’, ‘-mtune=size’ ].
I think all the split(sep=' ') commands just need to be split() which ignores multiple spaces by default.
The text was updated successfully, but these errors were encountered: