Try to enable LTO

This commit is contained in:
Alik Aslanyan 2019-01-12 18:33:41 +04:00 committed by GitHub
parent af56d964c1
commit ecf409293a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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