-
Notifications
You must be signed in to change notification settings - Fork 76
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
precompiled header rule misses build type flags #141
Comments
As a side note, precompiled header that is forced to be included with If I don't fix up the precompiled header rule manually and so the precompiled header is not used, the slowdown is not too bad - about 4% user time (1% wall time in my -j4 build). Would be interesting to test with proper include hygiene, but that requires a lot of menial changes, so not a quick test to try. |
I have tried to compile with
vs.
To do this test I have added a bunch of I haven't yet checked where the 110K text size increase comes from. But otherwise this looks like something worth pursuing. |
Ah, the build sets
and object files are now tiny. |
add_pch_rule
invm/cmake/functions.cmake
doesn't correctly add build type specific flags to the rule that produces the precompiled header. this makes the compiler complain later on, when the precompiled header is used, that the flags used to create the header and the flags it is used with are different and that the precompiled header will be ignored.The flags that are missing are stuff from
COMPILE_DEFINITIONS_RELEASE
and friends set invm/cmake/configurations.cmake
(likeGENERATE_DEBUGGING_AIDS
, etc)I don't have any cmake-fu to fix this. I figure it needs
gather_flags
but my naive attemtps fail with "get_property could not find TARGET .../self/vm. Perhaps it has not yet been created."The text was updated successfully, but these errors were encountered: