[PATCH] D37484: [libunwind] Always use unwind tables in tests

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 26 05:02:31 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL316657: [libunwind] Always use unwind tables in tests (authored by psmith).

Changed prior to commit:
  https://reviews.llvm.org/D37484?vs=113977&id=120397#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D37484

Files:
  libunwind/trunk/test/libunwind/test/config.py


Index: libunwind/trunk/test/libunwind/test/config.py
===================================================================
--- libunwind/trunk/test/libunwind/test/config.py
+++ libunwind/trunk/test/libunwind/test/config.py
@@ -43,10 +43,11 @@
 
     def configure_compile_flags(self):
         self.cxx.compile_flags += ['-DLIBUNWIND_NO_TIMER']
-        if self.get_lit_bool('enable_exceptions', True):
-            self.cxx.compile_flags += ['-funwind-tables']
-        else:
+        if not self.get_lit_bool('enable_exceptions', True):
             self.cxx.compile_flags += ['-fno-exceptions', '-DLIBUNWIND_HAS_NO_EXCEPTIONS']
+        # Stack unwinding tests need unwinding tables and these are not
+        # generated by default on all Targets.
+        self.cxx.compile_flags += ['-funwind-tables']
         if not self.get_lit_bool('enable_threads', True):
             self.cxx.compile_flags += ['-D_LIBUNWIND_HAS_NO_THREADS']
             self.config.available_features.add('libunwind-no-threads')


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37484.120397.patch
Type: text/x-patch
Size: 1007 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171026/c6ddd497/attachment.bin>


More information about the llvm-commits mailing list