mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-21 05:18:38 +00:00
Cosmos.Build.Builder: add -NOCLEAN, to reduce build time, as long as no big change is made, it is save to use, no my pc is it 1/3 lesser, the argument has to add manually into install.bat
Ldsfld, Stsfld: comment out unused code, and removes warnings on build
This commit is contained in:
parent
79178f1920
commit
0d48ff151f
4 changed files with 18 additions and 14 deletions
|
|
@ -12,6 +12,7 @@ namespace Cosmos.Build.Builder {
|
|||
public static bool ResetHive;
|
||||
public static bool StayOpen;
|
||||
public static bool UseTask;
|
||||
public static bool NoMsBuildClean;
|
||||
public static bool InstallTask;
|
||||
public static bool IgnoreVS;
|
||||
public static bool TestMode = false;
|
||||
|
|
@ -28,6 +29,7 @@ namespace Cosmos.Build.Builder {
|
|||
ResetHive = xArgs.Contains("-RESETHIVE");
|
||||
StayOpen = xArgs.Contains("-STAYOPEN");
|
||||
UseTask = !xArgs.Contains("-NOTASK");
|
||||
NoMsBuildClean = xArgs.Contains("-NOCLEAN");
|
||||
InstallTask = xArgs.Contains("-INSTALLTASK");
|
||||
DoNotLaunchVS = xArgs.Contains("-NOVSLAUNCH");
|
||||
// For use during dev of Builder only.
|
||||
|
|
|
|||
|
|
@ -96,7 +96,9 @@ namespace Cosmos.Build.Builder {
|
|||
string xMsBuild = Path.Combine(Paths.Windows, @"Microsoft.NET\Framework\v4.0.30319\msbuild.exe");
|
||||
string xParams = Quoted(aSlnFile) + @" /maxcpucount /verbosity:normal /nologo /p:Configuration=" + aBuildCfg + " /p:Platform=x86 /p:OutputPath=" + Quoted(mOutputDir);
|
||||
// Clean then build: http://adrianfoyn.wordpress.com/2011/03/30/wrestling-with-msbuild-the-bane-of-trebuild/
|
||||
StartConsole(xMsBuild, "/t:Clean " + xParams);
|
||||
if (false == App.NoMsBuildClean) {
|
||||
StartConsole(xMsBuild, "/t:Clean " + xParams);
|
||||
}
|
||||
StartConsole(xMsBuild, "/t:Build " + xParams);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,13 +32,13 @@ namespace Cosmos.IL2CPU.X86.IL
|
|||
}
|
||||
|
||||
//Assembler.Stack.Pop();
|
||||
int aExtraOffset;// = 0;
|
||||
bool xNeedsGC = xField.FieldType.IsClass && !xField.FieldType.IsValueType;
|
||||
//int aExtraOffset;// = 0;
|
||||
//bool xNeedsGC = xField.FieldType.IsClass && !xField.FieldType.IsValueType;
|
||||
var xSize = SizeOfType( xField.FieldType );
|
||||
if( xNeedsGC )
|
||||
{
|
||||
aExtraOffset = 12;
|
||||
}
|
||||
//if( xNeedsGC )
|
||||
//{
|
||||
// aExtraOffset = 12;
|
||||
//}
|
||||
|
||||
string xDataName = DataMember.GetStaticFieldName(xField);
|
||||
if( xSize >= 4 )
|
||||
|
|
|
|||
|
|
@ -29,14 +29,14 @@ namespace Cosmos.IL2CPU.X86.IL
|
|||
new Label(".AfterCCTorExceptionCheck");
|
||||
}
|
||||
|
||||
int aExtraOffset;// = 0;
|
||||
bool xNeedsGC = xField.FieldType.IsClass && !xField.FieldType.IsValueType;
|
||||
//int aExtraOffset;// = 0;
|
||||
//bool xNeedsGC = xField.FieldType.IsClass && !xField.FieldType.IsValueType;
|
||||
uint xSize = SizeOfType( xField.FieldType );
|
||||
if( xNeedsGC )
|
||||
{
|
||||
aExtraOffset = 12;
|
||||
}
|
||||
new Comment( Assembler, "Type = '" + xField.FieldType.FullName + "', NeedsGC = " + xNeedsGC );
|
||||
//if( xNeedsGC )
|
||||
//{
|
||||
// aExtraOffset = 12;
|
||||
//}
|
||||
new Comment( Assembler, "Type = '" + xField.FieldType.FullName /*+ "', NeedsGC = " + xNeedsGC*/ );
|
||||
|
||||
uint xOffset = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue