diff --git a/infra/base-images/msan-builder/compiler_wrapper.py b/infra/base-images/msan-builder/compiler_wrapper.py index 962cfb896..612ce7f7a 100755 --- a/infra/base-images/msan-builder/compiler_wrapper.py +++ b/infra/base-images/msan-builder/compiler_wrapper.py @@ -62,14 +62,15 @@ def GetCompilerArgs(args): return compiler_args - # FORTIFY_SOURCE is not supported by sanitizers. - compiler_args.extend([ - '-U_FORTIFY_SOURCE', - ]) - compiler_args = RemoveZDefs(compiler_args) - # Reduce build size. - compiler_args.append('-gline-tables-only') + compiler_args.extend([ + # FORTIFY_SOURCE is not supported by sanitizers. + '-U_FORTIFY_SOURCE', + # Reduce binary size. + '-gline-tables-only', + # Disable all warnings. + '-w', + ]) return compiler_args