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
--- 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