blob: 3014236f8ccda8d18204ff7adb48ada8ca2335bc [file] [log] [blame]
Sebastian Pop9ec60df2012-01-20 22:01:23 +00001// RUN: %clang -target x86_64-apple-darwin10 -### \
Daniel Dunbar60baf0f2010-07-19 17:11:36 +00002// RUN: -arch i386 -Xarch_i386 -mmacosx-version-min=10.4 \
3// RUN: -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 \
4// RUN: -c %s 2> %t
Daniel Dunbar8ac38d72011-02-19 05:33:51 +00005// RUN: FileCheck --check-prefix=CHECK-COMPILE < %t %s
Daniel Dunbar60baf0f2010-07-19 17:11:36 +00006//
Daniel Dunbara4ff6482011-04-19 23:34:21 +00007// CHECK-COMPILE: clang{{.*}}" "-cc1" "-triple" "i386-apple-macosx10.4.0"
8// CHECK-COMPILE: clang{{.*}}" "-cc1" "-triple" "x86_64-apple-macosx10.5.0"
Daniel Dunbar8ac38d72011-02-19 05:33:51 +00009
Sebastian Pop9ec60df2012-01-20 22:01:23 +000010// RUN: %clang -target x86_64-apple-darwin10 -### \
Daniel Dunbar8ac38d72011-02-19 05:33:51 +000011// RUN: -arch i386 -Xarch_i386 -Wl,-some-linker-arg -filelist X 2> %t
12// RUN: FileCheck --check-prefix=CHECK-LINK < %t %s
13//
Daniel Dunbarb90c5ba2011-02-20 17:41:24 +000014// CHECK-LINK: ld{{.*}} "-arch" "i386"{{.*}} "-some-linker-arg"
Daniel Dunbar2a45fa72011-06-21 00:20:17 +000015
Sebastian Pop9ec60df2012-01-20 22:01:23 +000016// RUN: %clang -target x86_64-apple-darwin10 -### \
Daniel Dunbar2a45fa72011-06-21 00:20:17 +000017// RUN: -arch armv7 -Xarch_armv7 -Wl,-some-linker-arg -filelist X 2> %t
18// RUN: FileCheck --check-prefix=CHECK-ARMV7-LINK < %t %s
19//
20// CHECK-ARMV7-LINK: ld{{.*}} "-arch" "armv7"{{.*}} "-some-linker-arg"