changeset 6971:23270ceb0be7

8027480: Build Windows x64 fastdebug builds using /homeparams Summary: Windows x64 fastdebug builds now uses the /homeparams compiler flag Reviewed-by: dcubed, zgu, lfoltan
author ctornqvi
date Wed, 20 Aug 2014 14:59:33 -0700
parents 943c5da523fd
children b231e0ef5547
files make/windows/makefiles/vm.make src/share/tools/ProjectCreator/BuildConfig.java src/share/tools/ProjectCreator/WinGammaPlatformVC10.java src/share/tools/ProjectCreator/WinGammaPlatformVC7.java src/share/tools/ProjectCreator/WinGammaPlatformVC8.java
diffstat 5 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/make/windows/makefiles/vm.make	Wed Aug 20 14:59:08 2014 -0700
+++ b/make/windows/makefiles/vm.make	Wed Aug 20 14:59:33 2014 -0700
@@ -34,6 +34,9 @@
 CXX_FLAGS=$(CXX_FLAGS) /D "PRODUCT"
 !else
 CXX_FLAGS=$(CXX_FLAGS) /D "ASSERT"
+!if "$(BUILDARCH)" == "amd64"
+CXX_FLAGS=$(CXX_FLAGS) /homeparams
+!endif
 !endif
 
 !if "$(Variant)" == "compiler1"
--- a/src/share/tools/ProjectCreator/BuildConfig.java	Wed Aug 20 14:59:08 2014 -0700
+++ b/src/share/tools/ProjectCreator/BuildConfig.java	Wed Aug 20 14:59:33 2014 -0700
@@ -504,7 +504,7 @@
 
         super.init(includes, defines);
 
-        getV("CompilerFlags").addAll(getCI().getDebugCompilerFlags(getOptFlag()));
+        getV("CompilerFlags").addAll(getCI().getDebugCompilerFlags(getOptFlag(), get("PlatformName")));
         getV("LinkerFlags").addAll(getCI().getDebugLinkerFlags());
    }
 }
@@ -619,7 +619,7 @@
 abstract class CompilerInterface {
     abstract Vector getBaseCompilerFlags(Vector defines, Vector includes, String outDir);
     abstract Vector getBaseLinkerFlags(String outDir, String outDll, String platformName);
-    abstract Vector getDebugCompilerFlags(String opt);
+    abstract Vector getDebugCompilerFlags(String opt, String platformName);
     abstract Vector getDebugLinkerFlags();
     abstract void   getAdditionalNonKernelLinkerFlags(Vector rv);
     abstract Vector getProductCompilerFlags();
--- a/src/share/tools/ProjectCreator/WinGammaPlatformVC10.java	Wed Aug 20 14:59:08 2014 -0700
+++ b/src/share/tools/ProjectCreator/WinGammaPlatformVC10.java	Wed Aug 20 14:59:33 2014 -0700
@@ -357,7 +357,7 @@
     }
 
     @Override
-    Vector getDebugCompilerFlags(String opt) {
+    Vector getDebugCompilerFlags(String opt, String platformName) {
         Vector rv = new Vector();
 
         // Set /On option
@@ -369,6 +369,10 @@
         addAttr(rv, "RuntimeLibrary", "MultiThreadedDLL");
         // Set /Oy- option
         addAttr(rv, "OmitFramePointers", "false");
+        // Set /homeparams for x64 debug builds
+        if(platformName.equals("x64")) {
+            addAttr(rv, "AdditionalOptions", "/homeparams");
+        }
 
         return rv;
     }
--- a/src/share/tools/ProjectCreator/WinGammaPlatformVC7.java	Wed Aug 20 14:59:08 2014 -0700
+++ b/src/share/tools/ProjectCreator/WinGammaPlatformVC7.java	Wed Aug 20 14:59:33 2014 -0700
@@ -284,7 +284,7 @@
 
    }
 
-   Vector getDebugCompilerFlags(String opt) {
+   Vector getDebugCompilerFlags(String opt, String platformName) {
       Vector rv = new Vector();
 
       getDebugCompilerFlags_common(opt, rv);
--- a/src/share/tools/ProjectCreator/WinGammaPlatformVC8.java	Wed Aug 20 14:59:08 2014 -0700
+++ b/src/share/tools/ProjectCreator/WinGammaPlatformVC8.java	Wed Aug 20 14:59:33 2014 -0700
@@ -48,7 +48,7 @@
     }
 
 
-    Vector getDebugCompilerFlags(String opt) {
+    Vector getDebugCompilerFlags(String opt, String platformName) {
         Vector rv = new Vector();
 
         getDebugCompilerFlags_common(opt,rv);