diff options
author | 2018-05-22 18:15:48 -0700 | |
---|---|---|
committer | 2018-05-23 10:52:54 -0700 | |
commit | 6578c34b73b89e3d00176a73b498d127d11e4795 (patch) | |
tree | 4c9949a5ca42c5dc4b100b6aaf7cdbc17225084c /tools/run_tests/run_tests.py | |
parent | cacc2ccbf0d37f57efdbc8f81ae8620d4a78366c (diff) |
Force UBSan to use clang++ as ld
Diffstat (limited to 'tools/run_tests/run_tests.py')
-rwxr-xr-x | tools/run_tests/run_tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py index 5d89cacc54..ea4c7c3c65 100755 --- a/tools/run_tests/run_tests.py +++ b/tools/run_tests/run_tests.py @@ -490,6 +490,14 @@ class CLanguage(object): return 'Makefile' def _clang_make_options(self, version_suffix=''): + if self.args.config == 'ubsan': + return [ + 'CC=clang%s' % version_suffix, + 'CXX=clang++%s' % version_suffix, + 'LD=clang++%s' % version_suffix, + 'LDXX=clang++%s' % version_suffix + ] + return [ 'CC=clang%s' % version_suffix, 'CXX=clang++%s' % version_suffix, |