mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-01 04:33:36 +02:00
Commit for Vlad Hirsl -- The default external scanner info collector was having problems with the output of GCC in non-utf8 locales. It now makes sure the locale is set to utf-8 when it runs GCC on *nix systems
This commit is contained in:
parent
d1e09a669d
commit
deb492ab11
3 changed files with 684 additions and 681 deletions
File diff suppressed because it is too large
Load diff
|
@ -49,6 +49,7 @@ import org.eclipse.cdt.managedbuilder.internal.core.Target;
|
||||||
import org.eclipse.cdt.managedbuilder.internal.core.Tool;
|
import org.eclipse.cdt.managedbuilder.internal.core.Tool;
|
||||||
import org.eclipse.cdt.managedbuilder.makegen.IManagedDependencyGenerator;
|
import org.eclipse.cdt.managedbuilder.makegen.IManagedDependencyGenerator;
|
||||||
import org.eclipse.cdt.managedbuilder.makegen.IManagedBuilderMakefileGenerator;
|
import org.eclipse.cdt.managedbuilder.makegen.IManagedBuilderMakefileGenerator;
|
||||||
|
import org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator;
|
||||||
import org.eclipse.cdt.managedbuilder.scannerconfig.IManagedScannerInfoCollector;
|
import org.eclipse.cdt.managedbuilder.scannerconfig.IManagedScannerInfoCollector;
|
||||||
import org.eclipse.core.resources.IFile;
|
import org.eclipse.core.resources.IFile;
|
||||||
import org.eclipse.core.resources.IProject;
|
import org.eclipse.core.resources.IProject;
|
||||||
|
@ -340,7 +341,8 @@ public class ManagedBuildManager extends AbstractCExtension implements IScannerI
|
||||||
catch (CoreException e) {
|
catch (CoreException e) {
|
||||||
// Probably not defined
|
// Probably not defined
|
||||||
}
|
}
|
||||||
return null;
|
// If no generator is defined, return the default GNU generator
|
||||||
|
return new GnuMakefileGenerator();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -487,7 +487,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-javadoc)
|
/* (non-javadoc)
|
||||||
* Answers a <code>StrinBuffer</code> containing all of the required targets to
|
* Answers a <code>StringBuffer</code> containing all of the required targets to
|
||||||
* properly build the project.
|
* properly build the project.
|
||||||
*
|
*
|
||||||
* @return StringBuffer
|
* @return StringBuffer
|
||||||
|
|
Loading…
Add table
Reference in a new issue