From 6578c34b73b89e3d00176a73b498d127d11e4795 Mon Sep 17 00:00:00 2001 From: Matt Kwong Date: Tue, 22 May 2018 18:15:48 -0700 Subject: Force UBSan to use clang++ as ld --- tools/run_tests/run_tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools/run_tests/run_tests.py') 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, -- cgit v1.2.3