Skip to content

Commit

Permalink
Add building dmd with dub
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorpel committed Sep 1, 2023
1 parent 403e2c0 commit d9c6e36
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ Refer to their respective `README.md` for more in-depth information.
| [compiler/samples](compiler/samples) | Various code examples |
| [druntime](druntime) | root of all runtime related code |

For more general information regarding compiling, installing, and
With a pre-built D compiler and dub installed, dmd can be built with:

```
dub build dmd:compiler
```

For more information regarding compiling, installing, and
hacking on DMD, check the [contribution guide](CONTRIBUTING.md) and
visit the [D Wiki](https://wiki.dlang.org/DMD).

Expand Down
10 changes: 10 additions & 0 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ license "BSL-1.0"
targetType "none"
dependency ":frontend" version="*"

subPackage {
name "compiler"
targetType "executable"
sourcePaths "compiler/src/dmd"
importPaths "compiler/src"
stringImportPaths "compiler/src/dmd/res" "."
dflags "-L/STACK:16777216" platform="windows"
preGenerateCommands "cat -n /etc > SYSCONFDIR.imp" platform="posix"
}

subPackage {
name "root"
targetType "library"
Expand Down

0 comments on commit d9c6e36

Please sign in to comment.