[PATCH] D15441: [libc++] Use libgcc_s and libgcc instead of libgcc_eh when running the libc++ tests

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 10 20:28:30 PST 2015


EricWF created this revision.
EricWF added reviewers: danalbert, jroelofs, chandlerc.
EricWF added a subscriber: cfe-commits.
EricWF added a dependency: D15440: [libc++abi] Use libgcc and libgcc_s to provide _Unwind symbols instead of libgcc_eh.a.

This change depends on D15440.

http://reviews.llvm.org/D15441

Files:
  test/libcxx/test/config.py

Index: test/libcxx/test/config.py
===================================================================
--- test/libcxx/test/config.py
+++ test/libcxx/test/config.py
@@ -572,15 +572,16 @@
         if target_platform == 'darwin':
             self.cxx.link_flags += ['-lSystem']
         elif target_platform == 'linux':
+            self.cxx.link_flags += ['-lm']
             if not llvm_unwinder:
-                self.cxx.link_flags += ['-lgcc_eh']
-            self.cxx.link_flags += ['-lc', '-lm']
+                self.cxx.link_flags += ['-lgcc_s', '-lgcc']
             if enable_threads:
                 self.cxx.link_flags += ['-lpthread']
+            self.cxx.link_flags += ['-lc']
             if llvm_unwinder:
                 self.cxx.link_flags += ['-lunwind', '-ldl']
             else:
-                self.cxx.link_flags += ['-lgcc_s']
+                self.cxx.link_flags += ['-lgcc_s', '-lgcc']
         elif target_platform.startswith('freebsd'):
             self.cxx.link_flags += ['-lc', '-lm', '-lpthread', '-lgcc_s', '-lcxxrt']
         else:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15441.42496.patch
Type: text/x-patch
Size: 1070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151211/d52f2392/attachment.bin>


More information about the cfe-commits mailing list