Author: lluis Date: 2008-02-20 05:30:49 -0500 (Wed, 20 Feb 2008) New Revision: 96230
Modified: branches/monodevelop/main/1.0/src/addins/CBinding/ChangeLog branches/monodevelop/main/1.0/src/addins/CBinding/Compiler/GNUCompiler.cs Log: 2008-02-19 Marcos David Mar?\195?\173n Amador <[EMAIL PROTECTED]> * Compiler/GNUCompiler.cs: Handle better CleanPrecompiledHeaders, fixes bug 361045. Modified: branches/monodevelop/main/1.0/src/addins/CBinding/ChangeLog =================================================================== --- branches/monodevelop/main/1.0/src/addins/CBinding/ChangeLog 2008-02-20 09:58:13 UTC (rev 96229) +++ branches/monodevelop/main/1.0/src/addins/CBinding/ChangeLog 2008-02-20 10:30:49 UTC (rev 96230) @@ -1,3 +1,8 @@ +2008-02-19 Marcos David MarĂn Amador <[EMAIL PROTECTED]> + + * Compiler/GNUCompiler.cs: Handle better CleanPrecompiledHeaders, fixes bug + 361045. + 2008-02-14 Geoff Norton <[EMAIL PROTECTED]> * Parser/TagDatabaseManager.cs: Disable the ctag implementation on OSX Modified: branches/monodevelop/main/1.0/src/addins/CBinding/Compiler/GNUCompiler.cs =================================================================== --- branches/monodevelop/main/1.0/src/addins/CBinding/Compiler/GNUCompiler.cs 2008-02-20 09:58:13 UTC (rev 96229) +++ branches/monodevelop/main/1.0/src/addins/CBinding/Compiler/GNUCompiler.cs 2008-02-20 10:30:49 UTC (rev 96230) @@ -553,23 +553,13 @@ void CleanPrecompiledHeaders (CProjectConfiguration configuration) { - string precDir = Path.Combine (configuration.SourceDirectory, ".prec"); + if (string.IsNullOrEmpty (configuration.SourceDirectory)) + return; - if (string.IsNullOrEmpty (precDir)) - return; - - string precConfigDir = Path.Combine (precDir, configuration.Name); - - if (string.IsNullOrEmpty (precConfigDir)) - return; - - if (Directory.Exists (precConfigDir)) - Directory.Delete (precConfigDir, true); - - if (Directory.Exists (precDir) && - Directory.GetFiles (precDir).Length == 0 && - Directory.GetDirectories (precDir).Length == 0) - Directory.Delete (precDir); + string precDir = Path.Combine (configuration.SourceDirectory, ".prec"); + + if (Directory.Exists (precDir)) + Directory.Delete (precDir, true); } private bool NeedsUpdate (ProjectFileCollection projectFiles, _______________________________________________ Mono-patches maillist - Mono-patches@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-patches