Skip to content

Commit

Permalink
ae.sys.d.manager: Build DMD's build.d with symbols
Browse files Browse the repository at this point in the history
Helps debug build issues when build.d crashes.

Upstreamed: dlang/dmd#10731
  • Loading branch information
CyberShadow committed Jan 17, 2020
1 parent 642bcd0 commit 48ee31a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sys/d/manager.d
Expand Up @@ -1002,12 +1002,14 @@ EOF");

version (Windows)
{
// A make argument is insufficient,
// because of recursive make invocations
auto m = dmdMakeFullName.readText();
m = m
// A make argument is insufficient,
// because of recursive make invocations
.replace(`CC=\dm\bin\dmc`, `CC=dmc`)
.replace(`SCROOT=$D\dm`, `SCROOT=` ~ scRoot)
// Debug crashes in build.d
.replaceAll(re!(`^( \$\(HOST_DC\) .*) (build\.d)$`, "m"), "$1 -g $2")
;
dmdMakeFullName.write(m);
}
Expand Down

0 comments on commit 48ee31a

Please sign in to comment.