-
Notifications
You must be signed in to change notification settings - Fork 0
/
dub.sdl
34 lines (30 loc) · 880 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
27
28
29
30
31
32
33
34
name "ddgst"
description "dd's hashing utility"
homepage "https://github.com/dd86k/ddgst"
authors "dd86k <[email protected]>"
license "CC0"
dependency "sha3-d" version="~>1.2.4"
dependency "blake2-d" version="~>0.3.0"
buildType "trace" {
versions "Trace"
buildOptions "debugMode" "debugInfo"
}
buildType "static" {
buildOptions "releaseMode" "noBoundsCheck" "optimize"
dflags "-static" platform="gdc"
dflags "--static" platform="ldc"
}
# Native build with fast-math option enabled
buildType "native" {
buildOptions "releaseMode" "noBoundsCheck" "optimize"
dflags "-mcpu=native" platform="dmd"
dflags "-ffast-math" "-march=native" platform="gdc"
dflags "--ffast-math" "-mcpu=native" platform="ldc"
}
# Verbose on GC/TLS usage
buildType "debugv" {
versions "PrintInfo"
buildOptions "debugMode"
dflags "-vgc" "-vtls" platform="dmd"
dflags "--vgc" "--vtls" platform="ldc"
}