From cfc3788eb9ec6a26c1a4ec689c651003e6df984a Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Tue, 20 Feb 2018 16:41:33 +1100 Subject: [PATCH] msan_builder: override -flto --- infra/base-images/base-msan-builder/compiler_wrapper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infra/base-images/base-msan-builder/compiler_wrapper.py b/infra/base-images/base-msan-builder/compiler_wrapper.py index b93234dc4..d9f847754 100755 --- a/infra/base-images/base-msan-builder/compiler_wrapper.py +++ b/infra/base-images/base-msan-builder/compiler_wrapper.py @@ -114,6 +114,8 @@ def GetCompilerArgs(args, is_cxx): '-gline-tables-only', # Disable all warnings. '-w', + # LTO isn't supported. + '-fno-lto', ]) if InvokedAsGcc():