[libcxx-commits] [PATCH] D103140: [libcxx] Fix exception raised during downstream bare-metal libunwind tests
Amilendra Kodithuwakku via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed May 26 00:24:33 PDT 2021
amilendra created this revision.
Herald added a project: libunwind.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libunwind.
amilendra requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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'
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103140
Files:
libunwind/test/libunwind/test/config.py
Index: libunwind/test/libunwind/test/config.py
===================================================================
--- libunwind/test/libunwind/test/config.py
+++ libunwind/test/libunwind/test/config.py
@@ -44,7 +44,8 @@
# 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']
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103140.347856.patch
Type: text/x-patch
Size: 703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210526/fb586835/attachment-0001.bin>
More information about the libcxx-commits
mailing list