diff make/lib/Lib-jdk.hotspot.agent.gmk @ 52108:9c84227836d4

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
author sgehwolf
date Fri, 12 Oct 2018 10:58:06 +0200
parents ec62d6cab037
children e47074d2d8cc
line wrap: on
line diff
--- 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