mirror of
https://github.com/dlang/dmd.git
synced 2025-04-25 20:50:41 +03:00
factor out config.sh script to update config files (VERSION, SYSCONFDIR)
- use generated/dub as string import path for copied/generated config files
This commit is contained in:
parent
a7867ca72b
commit
09cc628724
3 changed files with 20 additions and 14 deletions
5
dub.sdl
5
dub.sdl
|
@ -29,9 +29,8 @@ subPackage {
|
|||
"src/ddmd/tokens.d" \
|
||||
"src/ddmd/utf.d"
|
||||
|
||||
// stringImportPaths cannot be used because it will make Dub extremely slow
|
||||
// https://github.com/dlang/dub/issues/1199
|
||||
dflags "-J$PACKAGE_DIR"
|
||||
preGenerateCommands `cd "$${DUB_PACKAGE_DIR}" && ./config.sh generated/dub VERSION /etc`
|
||||
stringImportPaths "generated/dub"
|
||||
|
||||
dependency "dmd:root" version="*"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue