diff options
| author | Eric Fiselier <eric@efcs.ca> | 2014-08-15 18:00:47 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2014-08-15 18:00:47 +0000 |
| commit | 1a0b735340da46ffaf0f9deb529d8395b337d633 (patch) | |
| tree | 152dd4ceb7a4d084d631c665dad7a3102e0acb90 /libcxx/test | |
| parent | 5acc12550f8d94cad2b5498a4842a5079c69ac04 (diff) | |
| download | bcm5719-llvm-1a0b735340da46ffaf0f9deb529d8395b337d633.tar.gz bcm5719-llvm-1a0b735340da46ffaf0f9deb529d8395b337d633.zip | |
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.
llvm-svn: 215742
Diffstat (limited to 'libcxx/test')
| -rw-r--r-- | libcxx/test/lit.cfg | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libcxx/test/lit.cfg b/libcxx/test/lit.cfg index 6c06373797d..2eb130a3cc7 100644 --- a/libcxx/test/lit.cfg +++ b/libcxx/test/lit.cfg @@ -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") |

