[PATCH] Add FreeBSD 9 support to libcxxabi testing framework

Viktor Kutuzov vkutuzov at accesssoftek.com
Fri Aug 15 04:14:04 PDT 2014


Hi danalbert,

http://reviews.llvm.org/D4925

Files:
  test/lit.cfg

Index: test/lit.cfg
===================================================================
--- test/lit.cfg
+++ test/lit.cfg
@@ -201,6 +201,14 @@
             link_flags += ['-lc++abi']
         if sys.platform == 'darwin':
             link_flags += ['-lSystem']
+        elif sys.platform == 'freebsd9':
+            if not llvm_unwinder:
+                link_flags += ['-lgcc_eh']
+            link_flags += ['-lc', '-lm', '-lpthread']
+            if llvm_unwinder:
+                link_flags += ['-lunwind']
+            else:
+                link_flags += ['-lgcc_s']
         elif sys.platform == 'linux2':
             if not llvm_unwinder:
                 link_flags += ['-lgcc_eh']
@@ -226,7 +234,7 @@
 exec_env = {}
 if sys.platform == 'darwin':
     exec_env['DYLD_LIBRARY_PATH'] = os.path.join(libcxxabi_obj_root, 'lib')
-elif sys.platform == 'linux2':
+elif sys.platform == 'linux2' or sys.platform == 'freebsd9':
     link_flags += ['-Wl,-R', libcxxabi_obj_root + '/lib']
 else:
     lit_config.fatal("unrecognized system")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4925.12550.patch
Type: text/x-patch
Size: 1040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140815/0b0daa1c/attachment.bin>


More information about the llvm-commits mailing list