-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[lldb][test] Fixed the test no_unique_address-with-bitfields
#111902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lldb][test] Fixed the test no_unique_address-with-bitfields
#111902
Conversation
|
@llvm/pr-subscribers-lldb Author: Dmitry Vasilyev (slydiman) ChangesFixed the error Full diff: https://github.com/llvm/llvm-project/pull/111902.diff 1 Files Affected:
diff --git a/lldb/test/Shell/SymbolFile/DWARF/no_unique_address-with-bitfields.cpp b/lldb/test/Shell/SymbolFile/DWARF/no_unique_address-with-bitfields.cpp
index 980180e7be9aef..2d7316cf11bdc4 100644
--- a/lldb/test/Shell/SymbolFile/DWARF/no_unique_address-with-bitfields.cpp
+++ b/lldb/test/Shell/SymbolFile/DWARF/no_unique_address-with-bitfields.cpp
@@ -8,6 +8,8 @@
// RUN: -o "image dump ast" \
// RUN: -o exit | FileCheck %s
+// REQUIRES: system-darwin
+
// CHECK: (lldb) image dump ast
// CHECK: CXXRecordDecl {{.*}} struct Foo definition
// CHECK: |-FieldDecl {{.*}} data 'char[5]'
|
|
Running on Darwin is not required for |
Fixed the error `unable to create target: 'No available targets are compatible with triple "x86_64-apple-macosx10.4.0"'`.
0bb01d3 to
7827659
Compare
Done. |
|
Can we do this for all the |
|
I would recommend that -- then you wouldn't need to worry about how to spell [[no_unique_address]] on windows. |
Follow up to llvm#111902. Makes sure all the `no_unique_address` tests are in the same place and we don't rely on the host compiler. 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.
|
…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.
…111902) Fixed the error `unable to create target: 'No available targets are compatible with triple "x86_64-apple-macosx10.4.0"'` running `clang --target=x86_64-apple-macosx -c -gdwarf -o %t %s`.
Fixed the error
unable to create target: 'No available targets are compatible with triple "x86_64-apple-macosx10.4.0"'runningclang --target=x86_64-apple-macosx -c -gdwarf -o %t %s.