diff options
author | Jake Egan <5326451+jakeegan@users.noreply.github.com> | 2023-10-31 16:22:49 -0400 |
---|---|---|
committer | Jake Egan <5326451+jakeegan@users.noreply.github.com> | 2023-10-31 16:23:05 -0400 |
commit | 4fc70197919cded66502d1ad853f9e7f344b9a77 (patch) | |
tree | 51e1f375a9a66c87b0173e093baaa6e32b5c7c63 /libunwind | |
parent | 2260ebf7b6df15db96c76039758dd9dbf009c334 (diff) | |
download | llvm-4fc70197919cded66502d1ad853f9e7f344b9a77.zip llvm-4fc70197919cded66502d1ad853f9e7f344b9a77.tar.gz llvm-4fc70197919cded66502d1ad853f9e7f344b9a77.tar.bz2 |
[libc++][AIX] Add OS version to target triple
This will allow for configuring tests according to AIX version.
Reviewed By: daltenty, #libc, Mordante
Differential Revision: https://reviews.llvm.org/D149660
Diffstat (limited to 'libunwind')
-rw-r--r-- | libunwind/test/configs/ibm-libunwind-shared.cfg.in | 6 | ||||
-rw-r--r-- | libunwind/test/signal_frame.pass.cpp | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libunwind/test/configs/ibm-libunwind-shared.cfg.in b/libunwind/test/configs/ibm-libunwind-shared.cfg.in index c38d278..2221e0c 100644 --- a/libunwind/test/configs/ibm-libunwind-shared.cfg.in +++ b/libunwind/test/configs/ibm-libunwind-shared.cfg.in @@ -3,6 +3,12 @@ lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg') +import lit.util +if lit.util.isAIXTriple(config.target_triple): + # Add the AIX version to the triple here because there currently isn't a good + # way to retrieve the AIX version in the driver. + config.target_triple = lit.util.addAIXVersion(config.target_triple) + config.substitutions.append(('%{flags}', '')) config.substitutions.append(('%{compile_flags}', '-nostdinc++ -I %{include}' diff --git a/libunwind/test/signal_frame.pass.cpp b/libunwind/test/signal_frame.pass.cpp index e5409f6..004029c 100644 --- a/libunwind/test/signal_frame.pass.cpp +++ b/libunwind/test/signal_frame.pass.cpp @@ -19,7 +19,7 @@ // The AIX assembler does not support CFI directives, which // are necessary to run this test. -// UNSUPPORTED: target=powerpc{{(64)?}}-ibm-aix +// UNSUPPORTED: target={{.*}}-aix{{.*}} // Windows doesn't generally use CFI directives. However, i686 // mingw targets do use DWARF (where CFI directives are supported). |