diff configure.d @ 123:0d427170a805

Move to 64-bit
author David Bryant <bagnose@gmail.com>
date Wed, 04 May 2011 22:19:44 +0930
parents 6c3993f4c3eb
children 1da160a2c373
line wrap: on
line diff
--- a/configure.d	Mon May 02 17:42:51 2011 +0930
+++ b/configure.d	Wed May 04 22:19:44 2011 +0930
@@ -46,7 +46,7 @@
     // check that source_path looks like a source tree by making sure
     // that a README and options file are present
     writefln("Examining source");
-    if (!sourcePath.join("README").exists || !sourcePath.join("options").exists) {
+    if (!std.path.join(sourcePath, "README").exists || !std.path.join(sourcePath, "options").exists) {
         writefln("Error - current directory must contain README and options");
         return -1;
     }
@@ -58,26 +58,26 @@
         return -1;
     }
     targetPath.mkdirRecurse;
-    string binPath = targetPath.join("bin");
+    string binPath = std.path.join(targetPath, "bin");
     binPath.mkdir;
 
     // compile builder into bin_path
     writefln("Building the builder");
-    int ret = system(format("dmd -w -wi %s -O -of%s",
-                            sourcePath.join("builder.d"), binPath.join("builder")));
+    int ret = system(format("dmd -m64 -w -wi %s -O -of%s",
+                            std.path.join(sourcePath, "builder.d"), std.path.join(binPath, "builder")));
     if (ret) {
         writefln("Error - builder failed to compile");
         return -1;
     }
-    binPath.join("builder.o").remove;
+    std.path.join(binPath, "builder.o").remove;
 
     // set up scripts
     {
-        auto file = File(targetPath.join("build"), "w");
+        auto file = File(std.path.join(targetPath, "build"), "w");
         file.writefln("#!/bin/bash");
-        file.writefln("%s %s %s", binPath.join("builder"), sourcePath, targetPath);
+        file.writefln("%s %s %s", std.path.join(binPath, "builder"), sourcePath, targetPath);
     }
-    system("chmod +x " ~ targetPath.join("build"));
+    system("chmod +x " ~ std.path.join(targetPath, "build"));
     writefln("All done");
 
     return 0;