Closed FreeSlave closed 1 year ago
Same problem in PrimeXT
CMake already has internal checks for different platforms, so may be not good idea to check every symbol in build.h.
CMake already has internal checks for different platforms, so may be not good idea to check every symbol in build.h.
No it doesn't. You can't get target processor just from CMake.
CMake also could have multithreaded checks but it doesn't.
I wish we could just get all defined macros on MSVC, as we can do on GCC or Clang. But the needed feature was only added in only recent MSVC.
And remember we still have to target WinXP...
Just a quick thoughts.
What if build.h will be precompiled header? Will it fix slow checks? Though I don't see how CMake can leverage precompiled headers for CheckSymbolExists.
Script can also be redone so more probable checks done first and if they are true, no further checks are done. Many variables are mutually exclusive, like CPU arch and OS.
Closing as solved by https://github.com/FWGS/hlsdk-portable/pull/368
Not a bug, just a noticeable inconvenience. Platform checks during the project configuration (
Looking for XASH_...
) are much slower on Windows than on Linux.