-
Notifications
You must be signed in to change notification settings - Fork 9
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
--param and other CFLAGS with arguments cause problems #10
Comments
The functions are not prepared at all to deal with CFLAGS with arguments Use instead the one-parameter-form, e.g. |
Thank you very much! I did not know this is also legit. 👍 |
How is this supposed to work with clang -mllvm, -Xclang et al? Am I missing something? |
I have my clang/llvm toolchain setup to use offloading+polly, but I can't provide the flags. |
This is ugly: -Xclang=... indeed does not appear to work. One would need to hardcode explicitly a list of all parameters mandatorily requiring an argument (when we are at it, probably also for gcc). Do you have such a list? |
Implemented in v21.0 with the preliminary list -Xclang -mllvm --param |
That's most of them. The others don't really make any sense supporting IMHO. |
Personally, I think it's a pretty stupid way of parsing arguments, but what can you do..? |
I've tested v21.0, and it's much better! I can now go ahead and do some real damage to my system! ;-) |
Thanks for the list. I just released 21.1 which takes it into account. |
FlagNodupAdd() in bashrc.d/40-flag.sh also removes "--param" flag as duplicate if there is more than one "--param" since it's actual parameter is delimited by a space.
Example:
... --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 ...
becomes:
... --param l1-cache-size=32 l1-cache-line-size=64 l2-cache-size=4096 ...
There are a few more flags which should be allowed duplicate like the "-include" and "-imacros" (list by no means complete), although it is unlikely someone will specify these.
The text was updated successfully, but these errors were encountered: