Skip to content

Commit

Permalink
[libcxx] Fix exception raised during downstream bare-metal libunwind …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
amilendra committed Jun 16, 2021
1 parent 7fff39d commit 5636402
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libunwind/test/libunwind/test/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 5636402

Please sign in to comment.