2010-06-04 22:28:41 +04:00
|
|
|
// Check that we run dsymutil properly with multiple -arch options.
|
|
|
|
//
|
2012-01-21 02:01:23 +04:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-phases \
|
2010-06-04 22:28:41 +04:00
|
|
|
// RUN: -arch i386 -arch x86_64 %s -g 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-MULTIARCH-ACTIONS < %t %s
|
|
|
|
//
|
|
|
|
// CHECK-MULTIARCH-ACTIONS: 0: input, "{{.*}}darwin-dsymutil.c", c
|
|
|
|
// CHECK-MULTIARCH-ACTIONS: 1: preprocessor, {0}, cpp-output
|
|
|
|
// CHECK-MULTIARCH-ACTIONS: 2: compiler, {1}, assembler
|
|
|
|
// CHECK-MULTIARCH-ACTIONS: 3: assembler, {2}, object
|
|
|
|
// CHECK-MULTIARCH-ACTIONS: 4: linker, {3}, image
|
|
|
|
// CHECK-MULTIARCH-ACTIONS: 5: bind-arch, "i386", {4}, image
|
|
|
|
// CHECK-MULTIARCH-ACTIONS: 6: bind-arch, "x86_64", {4}, image
|
|
|
|
// CHECK-MULTIARCH-ACTIONS: 7: lipo, {5, 6}, image
|
|
|
|
// CHECK-MULTIARCH-ACTIONS: 8: dsymutil, {7}, dSYM
|
|
|
|
//
|
2012-01-21 02:01:23 +04:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
2010-06-04 22:28:41 +04:00
|
|
|
// RUN: -arch i386 -arch x86_64 %s -g 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-MULTIARCH-BINDINGS < %t %s
|
|
|
|
//
|
|
|
|
// CHECK-MULTIARCH-BINDINGS: "x86_64-apple-darwin10" - "darwin::Lipo", inputs: [{{.*}}, {{.*}}], output: "a.out"
|
2010-07-01 05:36:31 +04:00
|
|
|
// CHECK-MULTIARCH-BINDINGS: # "x86_64-apple-darwin10" - "darwin::Dsymutil", inputs: ["a.out"], output: "a.out.dSYM"
|
2010-06-04 22:28:41 +04:00
|
|
|
|
|
|
|
// Check output name derivation.
|
|
|
|
//
|
2012-01-21 02:01:23 +04:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
2010-06-04 22:28:41 +04:00
|
|
|
// RUN: -o foo %s -g 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-OUTPUT-NAME < %t %s
|
|
|
|
//
|
|
|
|
// CHECK-OUTPUT-NAME: "x86_64-apple-darwin10" - "darwin::Link", inputs: [{{.*}}], output: "foo"
|
|
|
|
// CHECK-OUTPUT-NAME: "x86_64-apple-darwin10" - "darwin::Dsymutil", inputs: ["foo"], output: "foo.dSYM"
|
2010-06-29 20:38:33 +04:00
|
|
|
|
|
|
|
// Check that we only use dsymutil when needed.
|
|
|
|
//
|
|
|
|
// RUN: touch %t.o
|
2012-01-21 02:01:23 +04:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
2010-06-29 20:38:33 +04:00
|
|
|
// RUN: -o foo %t.o -g 2> %t
|
|
|
|
// RUN: grep "Dsymutil" %t | count 0
|
2011-03-25 21:16:51 +03:00
|
|
|
|
|
|
|
// Check that we put the .dSYM in the right place.
|
2012-01-21 02:01:23 +04:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
2011-03-25 21:16:51 +03:00
|
|
|
// RUN: -o bar/foo %s -g 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-LOCATION < %t %s
|
|
|
|
|
|
|
|
// CHECK-LOCATION: "x86_64-apple-darwin10" - "darwin::Dsymutil", inputs: ["bar/foo"], output: "bar/foo.dSYM"
|