diff options
author | darius42 <[email protected]> | 2007-08-22 20:29:06 +0000 |
---|---|---|
committer | darius42 <[email protected]> | 2007-08-22 20:29:06 +0000 |
commit | c48b163f7332a86faaa42b7e962fb166206ca7e5 (patch) | |
tree | 3d46eed19facca336f7815f9cb052ab30cf8eb27 /src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java | |
parent | 14f23e25571a56646659a70caff73b8e36dda88d (diff) |
Update for bug 1690945. Adds a new compiler option 'msvc8' that extends
'msvc', but switches a flag associated with debug builds (/GZ -> /RTC1)
to avoid deprecation warnings.
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/cpptasks/trunk@138 32d7a393-a5a9-423c-abd3-5d954feb1f2f
Diffstat (limited to 'src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java')
-rw-r--r-- | src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java | 11 |
1 files changed, 7 insertions, 4 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 2502799..5f37855 100644 --- a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java @@ -72,10 +72,7 @@ public abstract class DevStudioCompatibleCCompiler } if (debug) { mindex += 1; - args.addElement("/Zi"); - args.addElement("/Od"); - args.addElement("/GZ"); - args.addElement("/D_DEBUG"); + addDebugSwitch(args); } else { if (optimization != null) { if (optimization.isSize()) { @@ -97,6 +94,12 @@ public abstract class DevStudioCompatibleCCompiler args.addElement("/GR"); } } + protected void addDebugSwitch(Vector args) { + args.addElement("/Zi"); + args.addElement("/Od"); + args.addElement("/GZ"); + args.addElement("/D_DEBUG"); + } protected void addWarningSwitch(Vector args, int level) { DevStudioProcessor.addWarningSwitch(args, level); } |