From 0fba0923c8a7ab136b376f21ef262ef343cf554b Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Fri, 14 May 2010 02:42:08 -0500 Subject: [PATCH] Changed MSVC compiler flag /Ot to /Ox and added /OPT:REF linker flag. --- AMBuildScript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AMBuildScript b/AMBuildScript index 51332c04..bcfaef48 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -126,8 +126,9 @@ class SM: if self.vendor == 'gcc': self.compiler.AddToListVar('CFLAGS', '-O3') elif self.vendor == 'msvc': - self.compiler.AddToListVar('CFLAGS', '/Ot') + self.compiler.AddToListVar('CFLAGS', '/Ox') self.compiler.AddToListVar('POSTLINKFLAGS', '/OPT:ICF') + self.compiler.AddToListVar('POSTLINKFLAGS', '/OPT:REF') #Debugging if AMBuild.options.debug == '1':