Skip to content

Commit

Permalink
Merge pull request #90 from kinke/pregenerate
Browse files Browse the repository at this point in the history
Avoid running dub recursively in pre-generate command, call D compiler directly
  • Loading branch information
Geod24 authored Jun 10, 2022
2 parents c6e18bc + 8718928 commit bc1c7d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ libs "ssl" "crypto" platform="posix"
configuration "library-autodetect" {
targetType "sourceLibrary"
excludedSourceFiles "source/deimos/openssl/applink.d"
preGenerateCommands `${DUB} scripts/generate_version.d` platform="posix"
preGenerateCommands `$DC -run scripts/generate_version.d` platform="posix"
versions `DeimosOpenSSLAutoDetect`
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_version.d
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import std.string;
import std.uni;

// file full path is: $SOME_PATH/openssl/scripts/generate_version.d
// We want: $SOME_PATH/openssl/deimos/openssl/
// We want: $SOME_PATH/openssl/source/deimos/openssl/
immutable TARGET_DIR_PATH = __FILE_FULL_PATH__
.dirName.dirName.buildPath("source", "deimos", "openssl");

Expand Down

0 comments on commit bc1c7d1

Please sign in to comment.