I suggest to add following line on top of rdmd main(): compiler = std.path.buildPath(std.path.dirName(args[0]), "dmd");