From 2d548cfac46ed49fc42910622d0222533ca84c4b Mon Sep 17 00:00:00 2001 From: Vikas Rangarajan Date: Wed, 24 Mar 2010 09:52:45 -0700 Subject: Replaced deprecated visual studio C++ compiler option /GZ with current /RTC1 --- .../sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java | 2 +- .../net/sf/antcontrib/cpptasks/devstudio/TestDevStudioCCompiler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java index cb378c0..172734b 100644 --- a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java @@ -101,7 +101,7 @@ public abstract class DevStudioCompatibleCCompiler protected void addDebugSwitch(Vector args) { args.addElement("/Zi"); args.addElement("/Od"); - args.addElement("/GZ"); + args.addElement("/RTC1"); args.addElement("/D_DEBUG"); } protected void addWarningSwitch(Vector args, int level) { diff --git a/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioCCompiler.java b/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioCCompiler.java index 0e546e9..599721a 100644 --- a/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioCCompiler.java +++ b/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioCCompiler.java @@ -33,7 +33,7 @@ public class TestDevStudioCCompiler extends TestCase { assertEquals(4, args.size()); assertEquals("/Zi", args.elementAt(0)); assertEquals("/Od", args.elementAt(1)); - assertEquals("/GZ", args.elementAt(2)); + assertEquals("/RTC1", args.elementAt(2)); assertEquals("/D_DEBUG", args.elementAt(3)); } } -- cgit v1.2.3