Avoid the need for the user to specify MACHINE
eyalroz opened this issue · comments
CMake should be able to provide sufficient information regarding the platform on which we're building so as to obviate the need for setting the MACHINE
parameter. Right now,
At the moment, the effects of MACHINE
are:
- Choosing between sets of preprocessor defines in
config.h
:
#define _INCLUDE_POSIX_SOURCE /* or not define it */
#define STDLIB_HAS_GETOPT /* or not define it */
#define SUPPORT_64BITS /* or not define it */
#define DSS_HUGE long
#define HUGE_COUNT 2
#define HUGE_FORMAT "%ld"
#define HUGE_DATE_FORMAT "%02lld"
#define RNG_C 1ull
#define RNG_A 6364136223846793005ul
- Some code in config.h
and driver.ci is conditioned on
defined(POSIX)||!defined(WIN32))- mostly relating to working with process id's and signals, and related
#include`s. - Path separator definition
- Use of an MS Visual Studio intrinsic instead of
strdup()
- for some really old version of MSVC
Also, it seems WIN32 is linked to the use of DATABASE=SQLSERVER
for some reason
- Some WIN32-specific optimizations under WIN32_Lean-and-Mean
... have I missed something?