mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
For posix targets make a symlink to the latest generated dmd (./generated/...) in the top level dir. (#14693)
The idea is to have faster iteration times. A "dmd" entry has been added to the .gitignore
This commit is contained in:
parent
020685c85b
commit
afed3381b8
2 changed files with 15 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -53,3 +53,6 @@ dmd.iml
|
|||
|
||||
# Deliberately ignored files
|
||||
untracked_files/
|
||||
|
||||
# Just in case
|
||||
dmd
|
||||
|
|
|
@ -459,7 +459,19 @@ alias directoryRule = makeRuleWithArgs!((MethodInitializer!BuildRule builder, Bu
|
|||
.msg("mkdirRecurse '%s'".format(dir))
|
||||
.commandFunction(() => mkdirRecurse(dir))
|
||||
);
|
||||
alias dmdSymlink = makeRule!((builder, rule) => builder
|
||||
.commandFunction((){
|
||||
import std.process;
|
||||
version(Windows)
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
spawnProcess(["ln", "-sf", env["DMD_PATH"], "./dmd"]);
|
||||
}
|
||||
})
|
||||
);
|
||||
/**
|
||||
BuildRule for the DMD executable.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue