Add -ldl to libc++ tests when sanitizers are used.
Clang 3.6 no longer links the sanitizer runtime library dependancies when -nodefaultlibs is used. This patch manually links in a missing dependancy. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@220463 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a655fdde5
commit
3de9baafba
@ -431,6 +431,8 @@ class Configuration(object):
|
||||
san = self.get_lit_conf('llvm_use_sanitizer', '').strip()
|
||||
if san:
|
||||
self.compile_flags += ['-fno-omit-frame-pointer']
|
||||
if not sys.platform.startswith('freebsd'):
|
||||
self.link_flags += ['-ldl']
|
||||
if san == 'Address':
|
||||
self.compile_flags += ['-fsanitize=address']
|
||||
self.config.available_features.add('asan')
|
||||
|
Loading…
Reference in New Issue
Block a user