Skip to content

Commit 4e6fa78

Browse files
authored
[lldb][test] Explicitly add target triple to no_unique_address Shell tests (#112523)
Follow up to #111902. Makes sure all the `no_unique_address` tests are in the same place and we don't rely on the host target triple (which means we don't need to account for `[[msvc::no_unique_address]]` on Windows). Now that we don't compile with the host compiler, this patch also adds `-c` to the compilation command since we don't actually need the linked binary in the test anyway (and on Darwin linking through Clang requires the `xcrun` prefix to set up the SDK paths, etc.). We already do this in `no_unique_address-with-bitfields.cpp` anyway.
1 parent 157f10d commit 4e6fa78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lldb/test/Shell/SymbolFile/DWARF/no_unique_address-alignment.cpp renamed to lldb/test/Shell/SymbolFile/DWARF/x86/no_unique_address-alignment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// XFAIL: *
22

3-
// RUN: %clangxx_host -gdwarf -o %t %s
3+
// RUN: %clang --target=x86_64-apple-macosx -c -gdwarf -o %t %s
44
// RUN: %lldb %t \
55
// RUN: -o "expr alignof(OverlappingFields)" \
66
// RUN: -o "expr sizeof(OverlappingFields)" \

lldb/test/Shell/SymbolFile/DWARF/no_unique_address-base-alignment.cpp renamed to lldb/test/Shell/SymbolFile/DWARF/x86/no_unique_address-base-alignment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// XFAIL: *
22

3-
// RUN: %clangxx_host -gdwarf -o %t %s
3+
// RUN: %clang --target=x86_64-apple-macosx -c -gdwarf -o %t %s
44
// RUN: %lldb %t \
55
// RUN: -o "expr alignof(OverlappingDerived)" \
66
// RUN: -o "expr sizeof(OverlappingDerived)" \

0 commit comments

Comments
 (0)