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 Sep 10, 2024
1 parent 5e2a8de commit e0f9127
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 e0f9127

Please sign in to comment.