Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame^] | 1 | // RUN: %clang -target x86_64-apple-darwin10 -### \ |
Daniel Dunbar | 60baf0f | 2010-07-19 17:11:36 +0000 | [diff] [blame] | 2 | // 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 Dunbar | 8ac38d7 | 2011-02-19 05:33:51 +0000 | [diff] [blame] | 5 | // RUN: FileCheck --check-prefix=CHECK-COMPILE < %t %s |
Daniel Dunbar | 60baf0f | 2010-07-19 17:11:36 +0000 | [diff] [blame] | 6 | // |
Daniel Dunbar | a4ff648 | 2011-04-19 23:34:21 +0000 | [diff] [blame] | 7 | // CHECK-COMPILE: clang{{.*}}" "-cc1" "-triple" "i386-apple-macosx10.4.0" |
| 8 | // CHECK-COMPILE: clang{{.*}}" "-cc1" "-triple" "x86_64-apple-macosx10.5.0" |
Daniel Dunbar | 8ac38d7 | 2011-02-19 05:33:51 +0000 | [diff] [blame] | 9 | |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame^] | 10 | // RUN: %clang -target x86_64-apple-darwin10 -### \ |
Daniel Dunbar | 8ac38d7 | 2011-02-19 05:33:51 +0000 | [diff] [blame] | 11 | // RUN: -arch i386 -Xarch_i386 -Wl,-some-linker-arg -filelist X 2> %t |
| 12 | // RUN: FileCheck --check-prefix=CHECK-LINK < %t %s |
| 13 | // |
Daniel Dunbar | b90c5ba | 2011-02-20 17:41:24 +0000 | [diff] [blame] | 14 | // CHECK-LINK: ld{{.*}} "-arch" "i386"{{.*}} "-some-linker-arg" |
Daniel Dunbar | 2a45fa7 | 2011-06-21 00:20:17 +0000 | [diff] [blame] | 15 | |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame^] | 16 | // RUN: %clang -target x86_64-apple-darwin10 -### \ |
Daniel Dunbar | 2a45fa7 | 2011-06-21 00:20:17 +0000 | [diff] [blame] | 17 | // 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" |