mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
Add building dmd with dub
This commit is contained in:
parent
da20db5e0e
commit
edbc819e06
3 changed files with 39 additions and 1 deletions
21
.github/workflows/build_with_dub.yml
vendored
Normal file
21
.github/workflows/build_with_dub.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: Build D compiler using dub
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Build D compiler using dub
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Host D compiler
|
||||
uses: dlang-community/setup-dlang@v1.3.0
|
||||
|
||||
- name: Invoke dub
|
||||
run: dub run dmd:compiler -- --version
|
|
@ -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 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).
|
||||
|
||||
|
|
11
dub.sdl
11
dub.sdl
|
@ -7,6 +7,17 @@ license "BSL-1.0"
|
|||
targetType "none"
|
||||
dependency ":frontend" version="*"
|
||||
|
||||
subPackage {
|
||||
name "compiler"
|
||||
targetType "executable"
|
||||
targetName "dmd"
|
||||
sourcePaths "compiler/src/dmd"
|
||||
importPaths "compiler/src"
|
||||
stringImportPaths "compiler/src/dmd/res" "."
|
||||
dflags "-L/STACK:16777216" platform="windows"
|
||||
preGenerateCommands "echo -n /etc > SYSCONFDIR.imp" platform="posix"
|
||||
}
|
||||
|
||||
subPackage {
|
||||
name "root"
|
||||
targetType "library"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue