comparison builder.d @ 127:1da160a2c373

Chess checkpoint
author David Bryant <bagnose@gmail.com>
date Mon, 12 Dec 2011 18:03:07 +1030
parents 0d427170a805
children 5920bb2ddd0f bc5baa585b32
comparison
equal deleted inserted replaced
126:89016abde9fe 127:1da160a2c373
513 // an object file is built from its source 513 // an object file is built from its source
514 override void build() { 514 override void build() {
515 writefln("Object %s", mPath); 515 writefln("Object %s", mPath);
516 scope cmd = new StringFormatter; 516 scope cmd = new StringFormatter;
517 517
518 cmd.format("dmd -m64 -c"); 518 cmd.format("dmd -m32 -c");
519 foreach (path; Global.bundlePaths) { 519 foreach (path; Global.bundlePaths) {
520 cmd.format(" -I%s", path); 520 cmd.format(" -I%s", path);
521 } 521 }
522 cmd.format(" -od%s %s", dirname(mPath), mSource.mPath); 522 cmd.format(" -od%s %s", dirname(mPath), mSource.mPath);
523 cmd.format(" @%s", Global.optionsPath); 523 cmd.format(" @%s", Global.optionsPath);
599 // the object needs, transitively 599 // the object needs, transitively
600 override void build() { 600 override void build() {
601 writefln("Program %s", mPath); 601 writefln("Program %s", mPath);
602 scope cmd = new StringFormatter(); 602 scope cmd = new StringFormatter();
603 603
604 cmd.format("dmd -m64 -L-L%s", std.path.join(Global.buildPath, "lib")); 604 cmd.format("dmd -m32 -L-L%s", std.path.join(Global.buildPath, "lib"));
605 cmd.format(" -of%s %s", mPath, mObject.mPath); 605 cmd.format(" -of%s %s", mPath, mObject.mPath);
606 606
607 // add the libraries we need 607 // add the libraries we need
608 LibraryItem[] libs; 608 LibraryItem[] libs;
609 foreach (item; mDepends) { 609 foreach (item; mDepends) {