mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 22:38:56 -04:00

deployment target if the SDK is newer than the system This commit reverts the revert commit r305891. Now the change from r305678 should be correct because `llvm::sys::getProcessTriple` now returns the correct macOS version of the system after the LLVM change r307372. Original commit message: This commit improves the driver by making sure that it picks the system version for the deployment target when the version of the macOS SDK is newer than the system version. rdar://29449467 Differential Revision: https://reviews.llvm.org/D34175 llvm-svn: 307388
11 lines
428 B
C
11 lines
428 B
C
// REQUIRES: system-darwin
|
|
|
|
// Ensure that we never pick a version that's based on the SDK that's newer than
|
|
// the system version:
|
|
// RUN: rm -rf %t/SDKs/MacOSX10.99.99.sdk
|
|
// RUN: mkdir -p %t/SDKs/MacOSX10.99.99.sdk
|
|
// RUN: %clang -target x86_64-apple-darwin -isysroot %t/SDKs/MacOSX10.99.99.sdk %s -### 2>&1 \
|
|
// RUN: | FileCheck --check-prefix=CHECK-MACOSX-SYSTEM-VERSION %s
|
|
|
|
// CHECK-MACOSX-SYSTEM-VERSION-NOT: 10.99.99"
|