File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
Runtimes/Core/cmake/modules Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -97,3 +97,4 @@ Runtimes/**/*.inc
97
97
Runtimes /** /* .json
98
98
Runtimes /** /* .modulemap
99
99
Runtimes /** /* .in
100
+ ! Runtimes /** /* .cmake.in
Original file line number Diff line number Diff line change
1
+ set (SwiftCore_SIZEOF_POINTER @SwiftCore_SIZEOF_POINTER@ )
2
+ set (SwiftCore_MODULE_TRIPLE @SwiftCore_MODULE_TRIPLE@ )
3
+ set (SwiftCore_PLATFORM_SUBIDR @SwiftCore_PLATFORM_SUBIDR@ )
4
+ set (SwiftCore_ARCH_SUBDIR @SwiftCore_ARCH_SUBDIR@ )
5
+
6
+ set (SwiftCore_SWIFT_AVAILABILITY_PLATFORM @SwiftCore_SWIFT_AVAILABILITY_PLATFORM@ )
7
+
8
+ set (SwiftCore_PLATFORM_INFO_SET 1 )
Original file line number Diff line number Diff line change
1
+ include ("${PROJECT_BINARY_DIR} /build/DetectedPlatformInfo.cmake" OPTIONAL )
2
+
3
+ if (SwiftCore_PLATFORM_INFO_SET )
4
+ return ()
5
+ endif ()
6
+
1
7
if (NOT SwiftCore_SIZEOF_POINTER )
2
8
set (SwiftCore_SIZEOF_POINTER "${CMAKE_SIZEOF_VOID_P} " CACHE STRING "Size of a pointer in bytes" )
3
9
message (CONFIGURE_LOG "Stdlib Pointer size: ${CMAKE_SIZEOF_VOID_P} " )
@@ -80,3 +86,7 @@ if(SwiftCore_VARIANT_MODULE_TRIPLE)
80
86
message (WARNING "Unknown platform ${platform} for variant availability" )
81
87
endif ()
82
88
endif ()
89
+
90
+ configure_file ("${CMAKE_CURRENT_LIST_DIR} /DetectedPlatformInfo.cmake.in"
91
+ "${PROJECT_BINARY_DIR} /build/DetectedPlatformInfo.cmake"
92
+ @ONLY )
You can’t perform that action at this time.
0 commit comments