summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java2
-rw-r--r--src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioCCompiler.java2
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));
}
}