Support generating dSYM companion files for (non-Darwin) firmware environments by considering the binary component of the triple in addition to the OS component. rdar://125629792
12 lines
396 B
Plaintext
12 lines
396 B
Plaintext
$ cat test.c
|
|
int main() {
|
|
return 0;
|
|
}
|
|
|
|
$ xcrun clang -O0 -target arm64-apple-unknown-macho test.c -c -o test.o
|
|
$ xcrun ld -arch arm64 -o test.out test.o -platform_version firmware 0 0
|
|
|
|
RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/firmware/test.out -o %t.dSYM
|
|
RUN: llvm-objdump -h %t.dSYM/Contents/Resources/DWARF/test.out | FileCheck %s
|
|
CHECK: file format mach-o arm64
|