[libcxx] r215742 - Get testsuite running on FreeBSD.

Eric Fiselier eric at efcs.ca
Fri Aug 15 11:00:48 PDT 2014


Author: ericwf
Date: Fri Aug 15 13:00:47 2014
New Revision: 215742

URL: http://llvm.org/viewvc/llvm-project?rev=215742&view=rev
Log:
Get testsuite running on FreeBSD.

Add initial support for using LIT to run the tests on FreeBSD. 
More work may need to be done to add support for FreeBSD but this is a
good initial step.

Modified:
    libcxx/trunk/test/lit.cfg

Modified: libcxx/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/lit.cfg?rev=215742&r1=215741&r2=215742&view=diff
==============================================================================
--- libcxx/trunk/test/lit.cfg (original)
+++ libcxx/trunk/test/lit.cfg Fri Aug 15 13:00:47 2014
@@ -202,6 +202,14 @@ locales = {
         'ru_RU.UTF-8': 'Russian_Russia.1251',
         'zh_CN.UTF-8': 'Chinese_China.936',
     },
+    'FreeBSD' : {
+        'en_US.UTF-8': 'en_US.UTF-8',
+        'cs_CZ.ISO8859-2': 'cs_CZ.ISO8859-2',
+        'fr_FR.UTF-8': 'fr_FR.UTF-8',
+        'fr_CA.ISO8859-1': 'fr_CA.ISO8859-1',
+        'ru_RU.UTF-8': 'ru_RU.UTF-8',
+        'zh_CN.UTF-8': 'zh_CN.UTF-8',
+    },
 }
 
 for feature, loc in locales[platform.system()].items():
@@ -279,6 +287,8 @@ if link_flags_str is None:
         link_flags += ['-lsupc++']
       elif cxx_abi == 'libcxxabi':
         link_flags += ['-lc++abi']
+      elif cxx_abi == 'libcxxrt':
+        link_flags += ['-lcxxrt']
       elif cxx_abi == 'none':
         pass
       else:
@@ -289,6 +299,8 @@ if link_flags_str is None:
       elif sys.platform == 'linux2':
         link_flags += [ '-lgcc_eh', '-lc', '-lm', '-lpthread',
               '-lrt', '-lgcc_s']
+      elif sys.platform == 'freebsd10':
+        link_flags += ['-lc', '-lm', '-lpthread', '-lgcc_s']
       else:
         lit_config.fatal("unrecognized system")
 
@@ -314,6 +326,8 @@ elif sys.platform == 'linux2':
         link_flags += ['-Wl,-R', libcxx_obj_root + '/lib']
     compile_flags += ['-D__STDC_FORMAT_MACROS', '-D__STDC_LIMIT_MACROS',
         '-D__STDC_CONSTANT_MACROS']
+elif sys.platform == 'freebsd10':
+    lit_config.warning('support for freebsd10 is experimental')
 else:
     lit_config.fatal("unrecognized system")
 





More information about the cfe-commits mailing list