mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
14 lines
364 B
C
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
|