[gtk+] MSVC builds: Use /opt:ref for release builds



commit dbe430f6ec1dbc699c8a5963310226e69db2d266
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Nov 12 18:16:33 2015 +0800

    MSVC builds: Use /opt:ref for release builds
    
    glib-compile-resources have been updated to ensure that the symbols
    generated are referred to, so that they will not be optimized out by the
    linker in release builds.  We can change from /opt:noref to /opt:ref,
    which should improve optimization a bit.

 build/win32/vs10/gtk3-demo-application.vcxprojin |    4 ++--
 build/win32/vs10/gtk3-demo.vcxprojin             |    4 ++--
 build/win32/vs10/gtk3-icon-browser.vcxprojin     |    4 ++--
 build/win32/vs9/gtk3-demo-application.vcprojin   |    4 ++--
 build/win32/vs9/gtk3-demo.vcprojin               |    4 ++--
 build/win32/vs9/gtk3-icon-browser.vcprojin       |    4 ++--
 6 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/build/win32/vs10/gtk3-demo-application.vcxprojin 
b/build/win32/vs10/gtk3-demo-application.vcxprojin
index 1d7d9af..6ff02c8 100644
--- a/build/win32/vs10/gtk3-demo-application.vcxprojin
+++ b/build/win32/vs10/gtk3-demo-application.vcxprojin
@@ -105,7 +105,7 @@
     <Link>
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <SubSystem>Console</SubSystem>
-      <OptimizeReferences>false</OptimizeReferences>
+      <OptimizeReferences>true</OptimizeReferences>
       <EnableCOMDATFolding>true</EnableCOMDATFolding>
       <TargetMachine>MachineX86</TargetMachine>
     </Link>
@@ -149,7 +149,7 @@
     <Link>
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <SubSystem>Console</SubSystem>
-      <OptimizeReferences>false</OptimizeReferences>
+      <OptimizeReferences>true</OptimizeReferences>
       <EnableCOMDATFolding>true</EnableCOMDATFolding>
       <TargetMachine>MachineX64</TargetMachine>
     </Link>
diff --git a/build/win32/vs10/gtk3-demo.vcxprojin b/build/win32/vs10/gtk3-demo.vcxprojin
index 45a7cb2..0abda49 100644
--- a/build/win32/vs10/gtk3-demo.vcxprojin
+++ b/build/win32/vs10/gtk3-demo.vcxprojin
@@ -112,7 +112,7 @@
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <SubSystem>Console</SubSystem>
       <FunctionLevelLinking>false</FunctionLevelLinking>
-      <OptimizeReferences>false</OptimizeReferences>
+      <OptimizeReferences>true</OptimizeReferences>
       <EnableCOMDATFolding>true</EnableCOMDATFolding>
       <RandomizedBaseAddress>false</RandomizedBaseAddress>
       <DataExecutionPrevention>
@@ -160,7 +160,7 @@
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <SubSystem>Console</SubSystem>
       <FunctionLevelLinking>false</FunctionLevelLinking>
-      <OptimizeReferences>false</OptimizeReferences>
+      <OptimizeReferences>true</OptimizeReferences>
       <EnableCOMDATFolding>true</EnableCOMDATFolding>
       <RandomizedBaseAddress>false</RandomizedBaseAddress>
       <DataExecutionPrevention>
diff --git a/build/win32/vs10/gtk3-icon-browser.vcxprojin b/build/win32/vs10/gtk3-icon-browser.vcxprojin
index 80fd216..f705ef7 100644
--- a/build/win32/vs10/gtk3-icon-browser.vcxprojin
+++ b/build/win32/vs10/gtk3-icon-browser.vcxprojin
@@ -107,7 +107,7 @@
     <Link>
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <SubSystem>Console</SubSystem>
-      <OptimizeReferences>false</OptimizeReferences>
+      <OptimizeReferences>true</OptimizeReferences>
       <EnableCOMDATFolding>true</EnableCOMDATFolding>
       <TargetMachine>MachineX86</TargetMachine>
     </Link>
@@ -153,7 +153,7 @@
     <Link>
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <SubSystem>Console</SubSystem>
-      <OptimizeReferences>false</OptimizeReferences>
+      <OptimizeReferences>true</OptimizeReferences>
       <EnableCOMDATFolding>true</EnableCOMDATFolding>
       <TargetMachine>MachineX64</TargetMachine>
     </Link>
diff --git a/build/win32/vs9/gtk3-demo-application.vcprojin b/build/win32/vs9/gtk3-demo-application.vcprojin
index 3c718f0..2d8a85d 100644
--- a/build/win32/vs9/gtk3-demo-application.vcprojin
+++ b/build/win32/vs9/gtk3-demo-application.vcprojin
@@ -73,7 +73,7 @@
                                LinkIncremental="1"
                                GenerateDebugInformation="true"
                                SubSystem="1"
-                               OptimizeReferences="1"
+                               OptimizeReferences="2"
                                EnableCOMDATFolding="2"
                                TargetMachine="1"
                        />
@@ -134,7 +134,7 @@
                                LinkIncremental="1"
                                GenerateDebugInformation="true"
                                SubSystem="1"
-                               OptimizeReferences="1"
+                               OptimizeReferences="2"
                                EnableCOMDATFolding="2"
                                TargetMachine="17"
                        />
diff --git a/build/win32/vs9/gtk3-demo.vcprojin b/build/win32/vs9/gtk3-demo.vcprojin
index 9818e00..f8aef24 100644
--- a/build/win32/vs9/gtk3-demo.vcprojin
+++ b/build/win32/vs9/gtk3-demo.vcprojin
@@ -111,7 +111,7 @@
                                LinkIncremental="1"
                                GenerateDebugInformation="true"
                                SubSystem="1"
-                               OptimizeReferences="1"
+                               OptimizeReferences="2"
                                EnableCOMDATFolding="2"
                                RandomizedBaseAddress="1"
                                DataExecutionPrevention="0"
@@ -144,7 +144,7 @@
                                LinkIncremental="1"
                                GenerateDebugInformation="true"
                                SubSystem="1"
-                               OptimizeReferences="1"
+                               OptimizeReferences="2"
                                EnableCOMDATFolding="2"
                                RandomizedBaseAddress="1"
                                DataExecutionPrevention="0"
diff --git a/build/win32/vs9/gtk3-icon-browser.vcprojin b/build/win32/vs9/gtk3-icon-browser.vcprojin
index 33fbb49..08580b5 100644
--- a/build/win32/vs9/gtk3-icon-browser.vcprojin
+++ b/build/win32/vs9/gtk3-icon-browser.vcprojin
@@ -77,7 +77,7 @@
                                LinkIncremental="1"
                                GenerateDebugInformation="true"
                                SubSystem="1"
-                               OptimizeReferences="1"
+                               OptimizeReferences="2"
                                EnableCOMDATFolding="2"
                                TargetMachine="1"
                        />
@@ -142,7 +142,7 @@
                                LinkIncremental="1"
                                GenerateDebugInformation="true"
                                SubSystem="1"
-                               OptimizeReferences="1"
+                               OptimizeReferences="2"
                                EnableCOMDATFolding="2"
                                TargetMachine="17"
                        />


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]