-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdub.sdl
26 lines (20 loc) · 872 Bytes
/
dub.sdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name "dlp"
description "Tool for processing the D language"
authors "Jacob Carlborg"
copyright "Copyright © 2018, Jacob Carlborg"
license "BSL-1.0"
targetType "executable"
mainSourceFile "source/dlp/driver/main.d"
dependency "ddc" version="0.0.7"
preGenerateCommands "$$DC -run $PACKAGE_DIR/tools/generate_version.d" platform="posix"
preGenerateCommands "%DC% -run $PACKAGE_DIR/tools/generate_version.d" platform="windows"
stringImportPaths "tmp"
buildType "release" {
buildOptions "optimize" "inline" platform="posix"
buildOptions "optimize" "inline" platform="windows-ldc"
buildOptions "optimize" platform="windows-dmd"
// does not work for some reason. Causing errors like when linking: dlp.o:1:3: syntax error, unexpected $end
// dflags "-flto=full" platform="posix-ldc"
lflags "-static" platform="linux-ldc"
lflags "-dead_strip" platform="osx"
}