-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Revert "Detect dependency changes in Windows rc compiler" #15299
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
base: master
Are you sure you want to change the base?
Conversation
This reverts commit 632115e.
|
If I understand it correctly:
@bonzini sees it as a bug, and suggest to bypass compiler and global options when processing the ressource file. But I think this could also be seen as the expected behavior. @lb90 can fix the glib compilation problem simply by adding the proper include directory to the compile_ressources command, as this is already the case with all other targets in glib. On top of that, I realized that windows.compile_ressources is not adding implicitly the current directory as an include directory (#15215). At first I thought this was the cause of #15206, but it appears to be a different bug. Therefore, the question is whether or not the project and global options should be used for windows.compile_ressources. Personally, I think that it should, and in that case, #15206 would rather be a glib bug that a meson bug, 632115e should not be reverted, and probably meson documentation could be improved on that point. |
Then that is a non backwards compatible new feature instead of a bug, but either way it's a regression in existing projects that were obeying the documentation. Rejected -- if you wish such a new feature it must be opt in, via e.g. a new kwarg defaulting to false. It would then be permissible to plan for changing the default in meson 2.0, in which case you'd need to emit a FeatureDeprecated "compile_resources without explicit xxx kwarg. Currently it defaults to false but in meson 2.0 it will be changed to default to true." |
bruchar1
left a comment
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.
Sad, but I guess we have no other choice for now...
|
For the record, when I originally implemented rc compiling, I did not really have a good idea how it is actually used.
|
|
FWIW, Visual Studio's <ClCompile>
<PreprocessorDefinitions>...</PreprocessorDefinitions>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>...</PreprocessorDefinitions>
</ResourceCompile>So if one goes to I think that's done because the RC preprocessor doesn't understand all the command-line options that the CL preprocessor supports: https://devblogs.microsoft.com/oldnewthing/20171004-00/?p=97126. For example, one can pass |
This reverts commit 632115e.
See #15206.
If the issue can't be properly fixed, then sadly the change needs to be taken out.