[libunwind] 5636402 - [libcxx] Fix exception raised during downstream bare-metal libunwind tests
Amilendra Kodithuwakku via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 16 05:35:43 PDT 2021
Author: Amilendra Kodithuwakku
Date: 2021-06-16T13:35:36+01:00
New Revision: 5636402bc0c92eec2faf46edb0fb733d78fa259e
URL: https://github.com/llvm/llvm-project/commit/5636402bc0c92eec2faf46edb0fb733d78fa259e
DIFF: https://github.com/llvm/llvm-project/commit/5636402bc0c92eec2faf46edb0fb733d78fa259e.diff
LOG: [libcxx] Fix exception raised during downstream bare-metal libunwind tests
Fix for the following exception.
AttributeError: 'TestingConfig' object has no attribute 'target_triple'
Related revision: https://reviews.llvm.org/D102012
'TestingConfig' object has no attribute 'target_triple'
Reviewed By: #libunwind, miyuki, danielkiss, mstorsjo
Differential Revision: https://reviews.llvm.org/D103140
Added:
Modified:
libunwind/test/libunwind/test/config.py
Removed:
################################################################################
diff --git a/libunwind/test/libunwind/test/config.py b/libunwind/test/libunwind/test/config.py
index e3e1dfcaed88a..b3f12bfe403c4 100644
--- a/libunwind/test/libunwind/test/config.py
+++ b/libunwind/test/libunwind/test/config.py
@@ -44,7 +44,8 @@ def configure_compile_flags(self):
# generated by default on all Targets.
self.cxx.compile_flags += ['-funwind-tables']
# Make symbols available in the tests.
- if 'linux' in self.config.target_triple:
+ triple = self.get_lit_conf('target_triple', None)
+ if 'linux' in triple:
self.cxx.link_flags += ['-Wl,--export-dynamic']
if not self.get_lit_bool('enable_threads', True):
self.cxx.compile_flags += ['-D_LIBUNWIND_HAS_NO_THREADS']
More information about the cfe-commits
mailing list