}
else
{
+ char * compiler = getenv("COMPILER");
+ if(!compiler) compiler = "Default";
settingsContainer.Load();
//incref ideSettings;
delete settingsContainer;
// TODO: Command line option to choose between the two
// or a command line option to not use global settings
//defaultCompiler = MakeDefaultCompiler();
- defaultCompiler = ideSettings.GetCompilerConfig("Default");
+ defaultCompiler = ideSettings.GetCompilerConfig(compiler);
// possible TODO: use the workspace to select the active compiler
// TODO: option to specify compiler name when using global settings
}
defaultCompiler.libraryDirs.Add(dir);
delete optionsCompiler;
- project = LoadProject(epjPath);
+ project = LoadProject(epjPath, null);
if(project)
{
ProjectConfig defaultConfig = null;
}
if(valid)
{
- project.GenerateCompilerMk(defaultCompiler);
- project.GenerateCrossPlatformCf();
+ project.GenerateCompilerCf(defaultCompiler);
+ project.GenerateCrossPlatformMk();
if(project.GenerateMakefile(makePath, noResources, includemkPath, project.config))
{
if(makePath)