From 3ad83bd3845a84f54af7a2dadff4473a2bbc642f Mon Sep 17 00:00:00 2001 From: Frederic Riss Date: Tue, 12 Jan 2016 23:47:59 +0000 Subject: [Darwin] Fix deployment target detection There was a thinko in the deployment target detection code that made the -isysroot parsing have precedence over the environment variable for tvOS. This patch makes this logic symetric for all platforms (the env variable must have precedence). llvm-svn: 257543 --- clang/test/Driver/appletvos-version-min.c | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/test') diff --git a/clang/test/Driver/appletvos-version-min.c b/clang/test/Driver/appletvos-version-min.c index 9ff8297fe9e..7cbb2001a3e 100644 --- a/clang/test/Driver/appletvos-version-min.c +++ b/clang/test/Driver/appletvos-version-min.c @@ -2,6 +2,7 @@ // REQUIRES: aarch64-registered-target // RUN: %clang -target i386-apple-darwin10 -mappletvsimulator-version-min=9.0 -arch x86_64 -S -o - %s | FileCheck %s // RUN: %clang -target armv7s-apple-darwin10 -mappletvos-version-min=9.0 -arch arm64 -S -o - %s | FileCheck %s +// RUN: env TVOS_DEPLOYMENT_TARGET=9.0 %clang -isysroot SDKs/MacOSX10.9.sdk -target i386-apple-darwin10 -arch x86_64 -S -o - %s | FileCheck %s int main() { return 0; } // CHECK: .tvos_version_min 9, 0 -- cgit v1.2.3