From 2d9ae8316f019af0a09b1c686e76595067a63eb5 Mon Sep 17 00:00:00 2001 From: Alessio Date: Wed, 31 Jul 2024 21:20:48 +0200 Subject: [PATCH] introduced support for building with GDC by splitting config per compiler --- dub.sdl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dub.sdl b/dub.sdl index c5646f4..c0575b4 100644 --- a/dub.sdl +++ b/dub.sdl @@ -7,7 +7,10 @@ configuration "library-autodetect" { targetType "sourceLibrary" libs "ssl" "crypto" platform="posix" excludedSourceFiles "source/deimos/openssl/applink.d" - preGenerateCommands `$DC -run scripts/generate_version.d` platform="posix" + preGenerateCommands `$DC -run scripts/generate_version.d` platform="posix-ldc" + preGenerateCommands `$DC -run scripts/generate_version.d` platform="posix-dmd" + preGenerateCommands `$DC scripts/generate_version.d -o generate_version` `./generate_version` platform="posix-gdc" + postGenerateCommands `rm generate_version` platform="posix-gdc" versions `DeimosOpenSSLAutoDetect` }