diff options
| author | Eric Fiselier <eric@efcs.ca> | 2014-08-15 23:24:00 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2014-08-15 23:24:00 +0000 |
| commit | 983484fb11a572fdc427dcd8d5dc9479b09fd3fc (patch) | |
| tree | 1ada7b0a8a878b9641705d60ff957cc8f5091d12 /libcxx/test | |
| parent | ae4bb8c8f4a534c07d46e2f928352df32073e278 (diff) | |
| download | bcm5719-llvm-983484fb11a572fdc427dcd8d5dc9479b09fd3fc.tar.gz bcm5719-llvm-983484fb11a572fdc427dcd8d5dc9479b09fd3fc.zip | |
Readding FreeBSD support to lit.cfg. Patch from Pawel Worach.
Pawel has been using this patch on his buildbots for a while. This should
allow the testsuite to run on FreeBSD with libcxxrt.
llvm-svn: 215787
Diffstat (limited to 'libcxx/test')
| -rw-r--r-- | libcxx/test/lit.cfg | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libcxx/test/lit.cfg b/libcxx/test/lit.cfg index 6c06373797d..8a6ff4154d4 100644 --- a/libcxx/test/lit.cfg +++ b/libcxx/test/lit.cfg @@ -186,6 +186,14 @@ locales = { 'ru_RU.UTF-8': 'ru_RU.UTF-8', 'zh_CN.UTF-8': 'zh_CN.UTF-8', }, + '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', + }, 'Linux': { 'en_US.UTF-8': 'en_US.UTF-8', 'cs_CZ.ISO8859-2': 'cs_CZ.ISO-8859-2', @@ -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.startswith('freebsd'): + link_flags += ['-lc', '-lm', '-pthread', '-lgcc_s'] else: lit_config.fatal("unrecognized system") @@ -314,6 +326,9 @@ 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.startswith('freebsd'): + if not use_system_lib: + link_flags += ['-Wl,-R', libcxx_obj_root + '/lib'] else: lit_config.fatal("unrecognized system") |

