| 1 | From 77a71c32c9d19b87f79b208929e71282e8d8b5d9 Mon Sep 17 00:00:00 2001 |
| 2 | From: Gabriel de Dietrich <gabriel.dedietrich@qt.io> |
| 3 | Date: Thu, 7 Jul 2016 16:00:17 -0700 |
| 4 | Subject: [PATCH] configure and mkspecs: Don't try to find xcrun with xcrun |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
| 9 | Since Xcode 8 (beta 2) that tool is no longer available |
| 10 | through xcrun. We resort to xcodebuild instead. |
| 11 | |
| 12 | Change-Id: If9d7b535c1cbac2caae0112b2003283aeff34fb9 |
| 13 | Reviewed-by: Jake Petroules <jake.petroules@qt.io> |
| 14 | Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> |
| 15 | Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> |
| 16 | --- |
| 17 | configure | 2 +- |
| 18 | mkspecs/features/mac/default_pre.prf | 2 +- |
| 19 | 2 files changed, 2 insertions(+), 2 deletions(-) |
| 20 | |
| 21 | diff --git configure configure |
| 22 | index a1f0a8f..f4c7813 100755 |
| 23 | --- configure |
| 24 | +++ configure |
| 25 | @@ -543,7 +543,7 @@ if [ "$BUILD_ON_MAC" = "yes" ]; then |
| 26 | exit 2 |
| 27 | fi |
| 28 | |
| 29 | - if ! /usr/bin/xcrun -find xcrun >/dev/null 2>&1; then |
| 30 | + if ! /usr/bin/xcrun -find xcodebuild >/dev/null 2>&1; then |
| 31 | echo >&2 |
| 32 | echo " Xcode not set up properly. You may need to confirm the license" >&2 |
| 33 | echo " agreement by running /usr/bin/xcodebuild without arguments." >&2 |
| 34 | diff --git mkspecs/features/mac/default_pre.prf mkspecs/features/mac/default_pre.prf |
| 35 | index 0cc8cd6..5df99d1 100644 |
| 36 | --- mkspecs/features/mac/default_pre.prf |
| 37 | +++ mkspecs/features/mac/default_pre.prf |
| 38 | @@ -12,7 +12,7 @@ isEmpty(QMAKE_XCODE_DEVELOPER_PATH) { |
| 39 | error("Xcode is not installed in $${QMAKE_XCODE_DEVELOPER_PATH}. Please use xcode-select to choose Xcode installation path.") |
| 40 | |
| 41 | # Make sure Xcode is set up properly |
| 42 | - isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null"))): \ |
| 43 | + isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))): \ |
| 44 | error("Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.") |
| 45 | } |
| 46 | |
| 47 | -- |
| 48 | 2.9.3 |
| 49 | |