Files
swift-mirror/include/swift/Runtime/CMakeConfig.h.in
Evan Wilde a3c3d3e2ef Set version info with #define
Don't use `#cmakedefine` to define values that can be zero.
`#cmakedefine` only sets the definition when the corresponding value in
CMake itself has a truthy value. `0` has a false-y value, so
SWIFT_VERSION_MINOR is undefined for 6.0 resulting in some things
breaking.
2024-02-19 18:54:30 -08:00

14 lines
364 B
C

// This file is processed by CMake.
// See https://cmake.org/cmake/help/v3.0/command/configure_file.html.
#ifndef SWIFT_RUNTIME_CMAKECONFIG_H
#define SWIFT_RUNTIME_CMAKECONFIG_H
#cmakedefine01 SWIFT_BNI_OS_BUILD
#cmakedefine01 SWIFT_BNI_XCODE_BUILD
#define SWIFT_VERSION_MAJOR "@SWIFT_VERSION_MAJOR@"
#define SWIFT_VERSION_MINOR "@SWIFT_VERSION_MINOR@"
#endif