From ecf409293acb3c4d9ed9d03042da3268284d5776 Mon Sep 17 00:00:00 2001 From: Alik Aslanyan Date: Sat, 12 Jan 2019 18:33:41 +0400 Subject: [PATCH] Try to enable LTO --- AMBuildScript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AMBuildScript b/AMBuildScript index df3a2ab6..a4fb59c3 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -251,7 +251,8 @@ class AMXXConfig(object): ] if builder.options.opt == '1': - cxx.cflags += ['-O2'] + cxx.cflags += ['-O2', '-flto'] + cxx.linkflags += ['-O2', '-flto'] def configure_msvc(self, cxx): if builder.options.debug == '1':