-
-
Notifications
You must be signed in to change notification settings - Fork 618
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
[core] Use 'compileAs' API #771
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does fix the issue, but should we instead not use language
to determine the project type (vcproj/vcxproj vs csproj)?
What else is there to determine project type? The only alternative we have is But I see what you are kind of hinting at? I think that is a good idea, but indeed we'd need something else to determine the project type, and then I think we're falling in the same trap as what we tried to avoid with 'language' vs 'dialect'... say for example we did:
it wouldn't work, because for C# you need a csproj, not a vcxproj...
the options are related, and need to be validated for correct combinations.. |
I hear what you're saying, the inability to link APIs together does create a bit of an issue when things like this occur. But at the same time, there's really not much difference between the above and:
Regardless of which direction we go, we're creating an API that is only valid based on another API. We've kind of already got these anyway, I think the tight coupling we've created between "project type" and "language"/"dialect" is a problem, but perhaps I'm happy for this to go through, I did just notice you've called it |
It think the compileas is more of a bandaid to the bigger issue. It solves one particular issue, but not the issue I mentioned here: #770 We can merge this in the intermediate time, but I rather think about solving this the right way for the final 5.0 release that @starkos is working towards. I rather refactor to a |
made it lowercase as requested. |
so, that wouldn't solve a thing either.... for example this would blow up if we added validation:
which is not an unthinkable situation (we have tons of those cases already with the "flags {C++11}". |
The |
@starkos not sure I understand... using language for this in its place is not working, it emits this property at all times, because there is no way to not set language. |
Fix for: #766