aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/run_tests.py
diff options
context:
space:
mode:
authorGravatar Matt Kwong <mattkwong@google.com>2018-05-22 18:15:48 -0700
committerGravatar Matt Kwong <mattkwong@google.com>2018-05-23 10:52:54 -0700
commit6578c34b73b89e3d00176a73b498d127d11e4795 (patch)
tree4c9949a5ca42c5dc4b100b6aaf7cdbc17225084c /tools/run_tests/run_tests.py
parentcacc2ccbf0d37f57efdbc8f81ae8620d4a78366c (diff)
Force UBSan to use clang++ as ld
Diffstat (limited to 'tools/run_tests/run_tests.py')
-rwxr-xr-xtools/run_tests/run_tests.py8
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,