Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import std.stdio;
- import std.string;
- import std.file;
- import core.stdc.stdlib;
- int main()
- {
- auto dFiles = dirEntries("","*.{d,di}",SpanMode.depth);
- string cmd = "dmd -m64";
- foreach(d; dFiles)
- cmd ~= " " ~ d.name;
- cmd ~= " D.exe";
- system(cmd.toStringz());
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement