2015-08-06 00:33:28 +02:00
|
|
|
Processing of the -arch option happens at debug map parsing time, thus just
|
|
|
|
looking at the dumped debug maps is enough to validate their effects.
|
|
|
|
|
2018-03-18 12:38:41 +01:00
|
|
|
RUN: dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib | FileCheck %s -check-prefix=ARM64 -check-prefix=ARMV7S -check-prefix=ARMV7 -check-prefix=CHECK
|
|
|
|
RUN: dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch all | FileCheck %s -check-prefix=ARM64 -check-prefix=ARMV7S -check-prefix=ARMV7 -check-prefix=CHECK
|
|
|
|
RUN: dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch='*' | FileCheck %s -check-prefix=ARM64 -check-prefix=ARMV7S -check-prefix=ARMV7 -check-prefix=CHECK
|
|
|
|
RUN: dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch arm64 | FileCheck %s -check-prefix=ARM64 -check-prefix=CHECK
|
|
|
|
RUN: dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch arm | FileCheck %s -check-prefix=ARMV7S -check-prefix=ARMV7 -check-prefix=CHECK
|
|
|
|
RUN: dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch armv7 | FileCheck %s -check-prefix=ARMV7 -check-prefix=CHECK
|
|
|
|
RUN: dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch arm64 -arch armv7s | FileCheck %s -check-prefix=ARM64 -check-prefix=ARMV7S -check-prefix=CHECK
|
|
|
|
RUN: not dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch arm42 2>&1 | FileCheck %s -check-prefix=BADARCH
|
|
|
|
RUN: not dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch i386 2>&1 | FileCheck %s -check-prefix=EMPTY
|
2015-08-06 00:33:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
ARMV7: ---
|
|
|
|
ARMV7-NOT: ...
|
2016-04-23 01:21:13 +02:00
|
|
|
ARMV7: triple: 'armv7-apple-darwin'
|
2015-08-06 00:33:28 +02:00
|
|
|
ARMV7-NOT: ...
|
|
|
|
ARMV7: sym: _armv7_var
|
|
|
|
ARMV7-NOT: ---
|
|
|
|
|
|
|
|
ARMV7S: ---
|
|
|
|
ARMV7S-NOT: ...
|
2016-04-23 01:21:13 +02:00
|
|
|
ARMV7S: triple: 'armv7s-apple-darwin'
|
2015-08-06 00:33:28 +02:00
|
|
|
ARMV7S-NOT: ...
|
|
|
|
ARMV7S: sym: _armv7s_var
|
|
|
|
ARMV7S-NOT: ---
|
|
|
|
|
|
|
|
ARM64: ---
|
|
|
|
ARM64-NOT: ...
|
|
|
|
ARM64: triple: 'arm64-apple-darwin'
|
|
|
|
ARM64-NOT: ...
|
|
|
|
ARM64: sym: _arm64_var
|
|
|
|
ARM64-NOT: ---
|
|
|
|
|
|
|
|
CHECK: ...
|
|
|
|
|
2018-03-13 16:47:38 +01:00
|
|
|
BADARCH: error: unsupported cpu architecture: 'arm42'
|
2015-08-06 00:33:28 +02:00
|
|
|
EMPTY: error: no architecture to link
|