Only link tests against -ldl on linux
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@220510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a0ab096796
commit
29151f64e4
@ -431,7 +431,7 @@ class Configuration(object):
|
|||||||
san = self.get_lit_conf('llvm_use_sanitizer', '').strip()
|
san = self.get_lit_conf('llvm_use_sanitizer', '').strip()
|
||||||
if san:
|
if san:
|
||||||
self.compile_flags += ['-fno-omit-frame-pointer']
|
self.compile_flags += ['-fno-omit-frame-pointer']
|
||||||
if not sys.platform.startswith('freebsd'):
|
if sys.platform == 'linux2':
|
||||||
self.link_flags += ['-ldl']
|
self.link_flags += ['-ldl']
|
||||||
if san == 'Address':
|
if san == 'Address':
|
||||||
self.compile_flags += ['-fsanitize=address']
|
self.compile_flags += ['-fsanitize=address']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user