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. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@215787 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
15
test/lit.cfg
15
test/lit.cfg
@@ -186,6 +186,14 @@ locales = {
|
|||||||
'ru_RU.UTF-8': 'ru_RU.UTF-8',
|
'ru_RU.UTF-8': 'ru_RU.UTF-8',
|
||||||
'zh_CN.UTF-8': 'zh_CN.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': {
|
'Linux': {
|
||||||
'en_US.UTF-8': 'en_US.UTF-8',
|
'en_US.UTF-8': 'en_US.UTF-8',
|
||||||
'cs_CZ.ISO8859-2': 'cs_CZ.ISO-8859-2',
|
'cs_CZ.ISO8859-2': 'cs_CZ.ISO-8859-2',
|
||||||
@@ -279,6 +287,8 @@ if link_flags_str is None:
|
|||||||
link_flags += ['-lsupc++']
|
link_flags += ['-lsupc++']
|
||||||
elif cxx_abi == 'libcxxabi':
|
elif cxx_abi == 'libcxxabi':
|
||||||
link_flags += ['-lc++abi']
|
link_flags += ['-lc++abi']
|
||||||
|
elif cxx_abi == 'libcxxrt':
|
||||||
|
link_flags += ['-lcxxrt']
|
||||||
elif cxx_abi == 'none':
|
elif cxx_abi == 'none':
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
@@ -289,6 +299,8 @@ if link_flags_str is None:
|
|||||||
elif sys.platform == 'linux2':
|
elif sys.platform == 'linux2':
|
||||||
link_flags += [ '-lgcc_eh', '-lc', '-lm', '-lpthread',
|
link_flags += [ '-lgcc_eh', '-lc', '-lm', '-lpthread',
|
||||||
'-lrt', '-lgcc_s']
|
'-lrt', '-lgcc_s']
|
||||||
|
elif sys.platform.startswith('freebsd'):
|
||||||
|
link_flags += ['-lc', '-lm', '-pthread', '-lgcc_s']
|
||||||
else:
|
else:
|
||||||
lit_config.fatal("unrecognized system")
|
lit_config.fatal("unrecognized system")
|
||||||
|
|
||||||
@@ -314,6 +326,9 @@ elif sys.platform == 'linux2':
|
|||||||
link_flags += ['-Wl,-R', libcxx_obj_root + '/lib']
|
link_flags += ['-Wl,-R', libcxx_obj_root + '/lib']
|
||||||
compile_flags += ['-D__STDC_FORMAT_MACROS', '-D__STDC_LIMIT_MACROS',
|
compile_flags += ['-D__STDC_FORMAT_MACROS', '-D__STDC_LIMIT_MACROS',
|
||||||
'-D__STDC_CONSTANT_MACROS']
|
'-D__STDC_CONSTANT_MACROS']
|
||||||
|
elif sys.platform.startswith('freebsd'):
|
||||||
|
if not use_system_lib:
|
||||||
|
link_flags += ['-Wl,-R', libcxx_obj_root + '/lib']
|
||||||
else:
|
else:
|
||||||
lit_config.fatal("unrecognized system")
|
lit_config.fatal("unrecognized system")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user