This breaks library naming scheme. I suppose because LibraryNaming is getting called BEFORE it has been decided to append -m32 on 64-bit compilers, thus adding _amd64 on 32-bit targets. Toggling 64BIT option doesn't help at all.
It also weirdly interacts with CMake cache, I just had a build without _amd64 suffix, presuming it's built for 32-bit, but it actually was 64-bit binary.
I suggest reverting this commit and instead sanity checking the compiler if XASH_AMD64 was enabled if user selected 64BIT build type, or XASH_X86 otherwise.
https://github.com/FWGS/hlsdk-portable/commit/b89ce4c52703fc5b9e13683ecd1919b98694a9a2
This breaks library naming scheme. I suppose because LibraryNaming is getting called BEFORE it has been decided to append
-m32
on 64-bit compilers, thus adding _amd64 on 32-bit targets. Toggling64BIT
option doesn't help at all.It also weirdly interacts with CMake cache, I just had a build without
_amd64
suffix, presuming it's built for 32-bit, but it actually was 64-bit binary.