Patch #2730 2009-04-03 05:22

mmkider

miss armelfgcc in the common_functions.script
Download
2730-miss_armelfgcc.patch (2.0 KB)
Category
Plugin::Bugfix
Status
Accepted
Close date
2009-04-14 15:26
Assigned to
biplab
Index: common_functions.script
===================================================================
--- common_functions.script    (revision 5498)
+++ common_functions.script    (working copy)
@@ -19,6 +19,7 @@
         base.AddCompilerOption(_T("/W3"));
     }
     else if (   GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm-elf-gcc"))
+             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm*"))
              || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("avr*"))
              || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("tricore*"))
              || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("ppc*"))
@@ -60,6 +61,7 @@
         base.AddLinkerOption(_T("/DEBUG"));
     }
     else if (   GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm-elf-gcc"))
+             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm*"))
              || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("avr*"))
              || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("tricore*"))
              || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("ppc*"))
@@ -110,6 +112,7 @@
         base.AddCompilerOption(_T("/DNDEBUG"));
     }
     else if (   GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm-elf-gcc"))
+         || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm*"))
              || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("bcc*"))
              || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("cygwin"))
              || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("gcc"))
@@ -120,6 +123,7 @@
         base.AddCompilerOption(_T("-O2"));
 
         if (   GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm-elf-gcc"))
+        || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm*"))
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("gcc"))
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("gdc")) )
         {
mmkider 2009-04-03 05:22

because compiler plugin will be replaced "_" by a blank,so common_functions.script can't find arm-elf-gcc for parameters.

biplab 2009-04-14 15:26

I've applied in a modified form. Thanks for your patch.