diff options
| author | Eric Fiselier <eric@efcs.ca> | 2014-10-23 02:54:15 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2014-10-23 02:54:15 +0000 |
| commit | 062e6ee121519e4970b441829755eca95cc5e991 (patch) | |
| tree | f74d2c92134a59b21bde05a3b92802fa851afcbb /libcxx/test | |
| parent | 244ecf55bdf56905e3facd370dd4728297983e8f (diff) | |
| download | bcm5719-llvm-062e6ee121519e4970b441829755eca95cc5e991.tar.gz bcm5719-llvm-062e6ee121519e4970b441829755eca95cc5e991.zip | |
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.
llvm-svn: 220463
Diffstat (limited to 'libcxx/test')
| -rw-r--r-- | libcxx/test/lit.cfg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/test/lit.cfg b/libcxx/test/lit.cfg index d60c9693919..ff308b6ea7d 100644 --- a/libcxx/test/lit.cfg +++ b/libcxx/test/lit.cfg @@ -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') |

