8212110: Build of saproc.dll broken on Windows 32 bit after JDK-8210647
authorsgehwolf
Fri, 12 Oct 2018 10:58:06 +0200
changeset 52108 9c84227836d4
parent 52107 0c1e44da019c
child 52109 101c2b6eacbe
8212110: Build of saproc.dll broken on Windows 32 bit after JDK-8210647 Summary: Only add RTC1 compile flag for slowdebug builds. Reviewed-by: mdoerr, erikj
make/lib/Lib-jdk.hotspot.agent.gmk
--- a/make/lib/Lib-jdk.hotspot.agent.gmk	Fri Oct 12 16:25:24 2018 +0200
+++ b/make/lib/Lib-jdk.hotspot.agent.gmk	Fri Oct 12 10:58:06 2018 +0200
@@ -44,7 +44,12 @@
   ifeq ($(OPENJDK_TARGET_CPU), x86_64)
     SA_CXXFLAGS := -DWIN64
   else
-    SA_CXXFLAGS := -RTC1
+    # Only add /RTC1 flag for debug builds as it's
+    # incompatible with release type builds. See
+    # https://msdn.microsoft.com/en-us/library/8wtf2dfz.aspx
+    ifeq ($(DEBUG_LEVEL),slowdebug)
+      SA_CXXFLAGS := -RTC1
+    endif
   endif
 endif