Files
clang-p2996/llvm/test/tools/dsymutil/ARM/firmware.test
Jonas Devlieghere 83402c3019 [dsymutil] Support generating dSYMs for firmware environments (#87432)
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
2024-04-02 20:43:28 -07:00

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