mirror of
https://github.com/apple/swift-log
synced 2026-11-30 04:18:44 +00:00
enforce minimum Swift compiler version of 6.1 in CMake
This commit is contained in:
1 parent
e360da21b0
commit
178782481a
1 file changed
+4
@@ -9,6 +9,10 @@ option(BUILD_SHARED_LIBS "Build shared libraries by default" YES)
|
||||
|
||||
set(CMAKE_Swift_LANGUAGE_VERSION 6)
|
||||
|
||||
if(CMAKE_Swift_COMPILER_VERSION VERSION_LESS "6.1")
|
||||
message(FATAL_ERROR "swift-log requires Swift compiler version 6.1 or newer. Detected version: ${CMAKE_Swift_COMPILER_VERSION}")
|
||||
endif()
|
||||
|
||||
set(SWIFT_LOG_COMMON_COMPILE_OPTIONS
|
||||
"SHELL:-enable-upcoming-feature ExistentialAny"
|
||||
"SHELL:-enable-upcoming-feature MemberImportVisibility"
|
||||
|
||||
Reference in new issue
Block a user