Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 6479596

Browse files
committed
[cmake][xcode-toolchain] add support for major Xcode version >= 10
The regex that extracts the Xcode version should support major versions with two digits. rdar://41465184 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335801 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit 5dc174c)
1 parent 9283149 commit 6479596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/xcode-toolchain/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if(NOT XCODE_VERSION)
4949
OUTPUT_STRIP_TRAILING_WHITESPACE
5050
ERROR_FILE /dev/null
5151
)
52-
string(REGEX MATCH "Xcode ([0-9]([.][0-9])+)" version_match ${xcodebuild_version})
52+
string(REGEX MATCH "Xcode ([0-9][0-9]?([.][0-9])+)" version_match ${xcodebuild_version})
5353
if(version_match)
5454
message(STATUS "Identified Xcode Version: ${CMAKE_MATCH_1}")
5555
set(XCODE_VERSION ${CMAKE_MATCH_1})

0 commit comments

Comments
 (0)