diff options
author | Jeff Ames | 2008-03-25 07:49:31 +0000 |
---|---|---|
committer | Jeff Ames | 2008-03-25 07:49:31 +0000 |
commit | e3ca1130757675c45268ec268026341ee4424b46 (patch) | |
tree | abbae1825558dcca8bba21b8e7a37b2ec070e21b /Prebuild/src | |
parent | * Committing some voice related caps with hard coded responses so more debugg... (diff) | |
download | opensim-SC_OLD-e3ca1130757675c45268ec268026341ee4424b46.zip opensim-SC_OLD-e3ca1130757675c45268ec268026341ee4424b46.tar.gz opensim-SC_OLD-e3ca1130757675c45268ec268026341ee4424b46.tar.bz2 opensim-SC_OLD-e3ca1130757675c45268ec268026341ee4424b46.tar.xz |
Add "warnings as errors" support for nant and monodevelop to Prebuild (though monodevelop may ignore this).
Diffstat (limited to 'Prebuild/src')
-rw-r--r-- | Prebuild/src/Core/Targets/MonoDevelopTarget.cs | 2 | ||||
-rw-r--r-- | Prebuild/src/Core/Targets/NAntTarget.cs | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Prebuild/src/Core/Targets/MonoDevelopTarget.cs b/Prebuild/src/Core/Targets/MonoDevelopTarget.cs index af3341f..5a5dc55 100644 --- a/Prebuild/src/Core/Targets/MonoDevelopTarget.cs +++ b/Prebuild/src/Core/Targets/MonoDevelopTarget.cs | |||
@@ -245,7 +245,7 @@ namespace Prebuild.Core.Targets | |||
245 | ss.WriteLine(" />"); | 245 | ss.WriteLine(" />"); |
246 | 246 | ||
247 | ss.Write(" <Execution"); | 247 | ss.Write(" <Execution"); |
248 | ss.Write(" runwithwarnings=\"True\""); | 248 | ss.Write(" runwithwarnings=\"{0}\"", !conf.Options.WarningsAsErrors); |
249 | ss.Write(" consolepause=\"True\""); | 249 | ss.Write(" consolepause=\"True\""); |
250 | ss.Write(" runtime=\"{0}\"", netRuntime); | 250 | ss.Write(" runtime=\"{0}\"", netRuntime); |
251 | ss.Write(" clr-version=\"Net_2_0\""); | 251 | ss.Write(" clr-version=\"Net_2_0\""); |
diff --git a/Prebuild/src/Core/Targets/NAntTarget.cs b/Prebuild/src/Core/Targets/NAntTarget.cs index 6ee6aef..dfb1ce3 100644 --- a/Prebuild/src/Core/Targets/NAntTarget.cs +++ b/Prebuild/src/Core/Targets/NAntTarget.cs | |||
@@ -284,6 +284,11 @@ namespace Prebuild.Core.Targets | |||
284 | } | 284 | } |
285 | foreach (ConfigurationNode conf in project.Configurations) | 285 | foreach (ConfigurationNode conf in project.Configurations) |
286 | { | 286 | { |
287 | ss.Write(" warnaserror=\"{0}\"", conf.Options.WarningsAsErrors); | ||
288 | break; | ||
289 | } | ||
290 | foreach (ConfigurationNode conf in project.Configurations) | ||
291 | { | ||
287 | ss.Write(" define=\"{0}\"", conf.Options.CompilerDefines); | 292 | ss.Write(" define=\"{0}\"", conf.Options.CompilerDefines); |
288 | break; | 293 | break; |
289 | } | 294 | } |