Only link the tests against -ldl on linux

llvm-svn: 220509
This commit is contained in:
Eric Fiselier 2014-10-23 20:44:25 +00:00
parent 2f28686ca0
commit 17bb2118d2
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ san = lit_config.params.get('llvm_use_sanitizer', None)
if san is None:
san = getattr(config, 'llvm_use_sanitizer', None)
if san:
if not sys.platform.startswith('freebsd'):
if sys.platform == 'linux2':
link_flags += ['-ldl']
if san == 'Address':
compile_flags += ['-fsanitize=address']