Skip to content

Commit 0869b51

Browse files
committed
Revert "Fallback to building Cmake from source on all platforms, not just Linux (swiftlang#33543)"
This reverts commit 539b241.
1 parent a0cdeb5 commit 0869b51

File tree

1 file changed

+4
-0
lines changed
  • utils/swift_build_support/swift_build_support

1 file changed

+4
-0
lines changed

utils/swift_build_support/swift_build_support/cmake.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from __future__ import absolute_import, unicode_literals
1919

2020
import os
21+
import platform
2122
import re
2223
from numbers import Number
2324

@@ -255,6 +256,9 @@ def build_cmake(self, source_root, build_root):
255256
# the source and build the source if necessary. Returns the path to the
256257
# cmake binary.
257258
def check_cmake_version(self, source_root, build_root):
259+
if platform.system() != 'Linux':
260+
return
261+
258262
cmake_source_dir = os.path.join(source_root, 'cmake')
259263
# If the source is not checked out then don't attempt to build cmake.
260264
if not os.path.isdir(cmake_source_dir):

0 commit comments

Comments
 (0)