-
Notifications
You must be signed in to change notification settings - Fork 474
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
Wrong TAKES_/CONCAT_ARG for msvc options #1452
Comments
This morning I took the job and tested all these compiler arguments with cl.exe, how they behave with and w/o space. /Yc, /Yu, /Fp throws compiler error if there is space between. /AI works with space even docs doesn't state it and syntax is as: /AIfile |
Now I tested it also with clang-cl and it's important it behaves the same as cl.exe, one difference is that clang-cl doesn't support /FU and /AI options. |
/Fp and /Yu doesn't allow space between option and option value. Space is optional for /Tc and /Tp options. Fixes ccache#1452
I proposed PR for it. |
/Fp and /Yu doesn't allow space between option and option value. Fixes ccache#1452
/Fp and /Yu don't allow space between option and option value. Fixes #1452
During my latest patches I noticed that many
msvc
related options have incorrectly definedTAKES_ARG
andTAKES_CONCAT_ARG
.I checked all these options like
TAKES_ARG
can contain space between the option and option value, andTAKES_CONCAT_ARG
can't contain space between. Then I verified this at msvc Compiler options listed.And this is what I noted down:
I also tested
/Fp
and/Yu
options using the cl.exe and the compiler throws an error if there is a space between.Did I miss something or am I right?
The text was updated successfully, but these errors were encountered: