Skip to content

Commit

Permalink
Merge pull request #33699 from CodaFi/cmake-and-model
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-ci committed Aug 30, 2020
2 parents a0cdeb5 + 161fa16 commit 1e09ad0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions utils/swift_build_support/swift_build_support/cmake.py
Expand Up @@ -18,6 +18,7 @@
from __future__ import absolute_import, unicode_literals

import os
import platform
import re
from numbers import Number

Expand Down Expand Up @@ -255,6 +256,9 @@ def build_cmake(self, source_root, build_root):
# the source and build the source if necessary. Returns the path to the
# cmake binary.
def check_cmake_version(self, source_root, build_root):
if platform.system() != 'Linux':
return

cmake_source_dir = os.path.join(source_root, 'cmake')
# If the source is not checked out then don't attempt to build cmake.
if not os.path.isdir(cmake_source_dir):
Expand Down
4 changes: 2 additions & 2 deletions validation-test/BuildSystem/skip-local-build.test-sh
@@ -1,8 +1,8 @@
# REQUIRES: standalone_build
#
# RUN: %swift_src_root/utils/build-script --dump-config --skip-local-build 2>&1 | %FileCheck %s -check-prefix=CONFIG --dump-input=always
# RUN: %swift_src_root/utils/build-script --dump-config --skip-local-build 2>&1 | %FileCheck %s -check-prefix=CONFIG
# CONFIG: "skip_local_build": true

# RUN: %swift_src_root/utils/build-script --dry-run --verbose-build --skip-local-build 2>&1 | %FileCheck %s -check-prefix=DRY --dump-input=always
# RUN: %swift_src_root/utils/build-script --dry-run --verbose-build --skip-local-build 2>&1 | %FileCheck %s -check-prefix=DRY
# DRY: build-script-impl
# DRY-SAME: --skip-local-build

0 comments on commit 1e09ad0

Please sign in to comment.