From e0f9127fd05cc6721a61536a5a122881ed285ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Tue, 10 Sep 2024 19:35:31 +0200 Subject: [PATCH] Build only the "application" configuration with -preview=in Otherwise leads to linker errors when building together with other code that uses `in` parameters. See also vibe-d/vibe-core#411 --- dub.sdl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dub.sdl b/dub.sdl index 56f48ef39..8e9716359 100644 --- a/dub.sdl +++ b/dub.sdl @@ -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" @@ -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" {