diff options
author | 2017-12-04 14:48:38 -0800 | |
---|---|---|
committer | 2017-12-04 14:51:21 -0800 | |
commit | 6a4d0f864c3635e81d654e4ee1939e113e8f4cde (patch) | |
tree | 90545ad5f069682f68d763ee010f21a4a1e8550d /infra | |
parent | f40282609247bfa6dfeaa69ab2030965966039c4 (diff) |
msan_builder: Inject MSan flags in wrapper if they don't exist.
Some packages build test binaries that don't use DEB_C(XX)FLAGS and fail
during linking.
Diffstat (limited to 'infra')
-rwxr-xr-x | infra/base-images/msan-builder/compiler_wrapper.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/infra/base-images/msan-builder/compiler_wrapper.py b/infra/base-images/msan-builder/compiler_wrapper.py index 5f624d58..3e66592b 100755 --- a/infra/base-images/msan-builder/compiler_wrapper.py +++ b/infra/base-images/msan-builder/compiler_wrapper.py @@ -20,6 +20,8 @@ import os import subprocess import sys +import msan_build + def Is32Bit(args): """Return whether or not we're 32-bit.""" @@ -72,6 +74,10 @@ def GetCompilerArgs(args): '-w', ]) + if '-fsanitize=memory' not in args: + # If MSan flags weren't added for some reason, add them here. + compiler_args.extend(msan_build.INJECTED_ARGS) + return compiler_args |