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':