Skip to content

Commit

Permalink
Build only the "application" configuration with -preview=in
Browse files Browse the repository at this point in the history
Otherwise leads to linker errors when building together with other code that uses `in` parameters. See also vibe-d/vibe-core#411
  • Loading branch information
s-ludwig authored and dlang-bot committed Sep 11, 2024
1 parent 5e2a8de commit 6e14b65
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ license "MIT"

targetPath "bin"

dflags "-preview=in" platform="dmd"
dflags "-preview=in" platform="ldc"
//Disabled due to ICEs in gdc.
//dflags "-fpreview=in" platform="gdc"
// Deprecated module(s)
excludedSourceFiles "source/dub/packagesupplier.d"

Expand All @@ -21,6 +17,11 @@ configuration "application" {
// Uncomment to get rich output about the file parsing and json <-> YAML
// integrity checks
//debugVersions "ConfigFillerDebug"

dflags "-preview=in" platform="dmd"
dflags "-preview=in" platform="ldc"
//Disabled due to ICEs in gdc.
//dflags "-fpreview=in" platform="gdc"
}

configuration "library" {
Expand Down

0 comments on commit 6e14b65

Please sign in to comment.