From 1b919e36b81624e308b84294db3272b6276d2856 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 18 May 2020 14:26:46 -0400 Subject: makefile dub build flags --- org/spine_build_scaffold.org | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) (limited to 'org/spine_build_scaffold.org') diff --git a/org/spine_build_scaffold.org b/org/spine_build_scaffold.org index 49716d9..8da968c 100644 --- a/org/spine_build_scaffold.org +++ b/org/spine_build_scaffold.org @@ -243,7 +243,7 @@ all_debug_clean_ver: clean tangle dmd_debug_ver gdc_debug_ver ldc_debug_ver #+BEGIN_SRC makefile :tangle ../makefile dmd: dub_upgrade - $(DUB) --compiler=dmd --config=dmd -b release + $(DUB) --compiler=dmd --config=dmd --build=release-nobounds notify-send -t 0 'D dmd compiled test release executable ready' 'spine-dmd' #+END_SRC @@ -251,7 +251,7 @@ dmd: dub_upgrade #+BEGIN_SRC makefile :tangle ../makefile dmd_debug: - $(DUB) --compiler=dmd --config=dmd -b debug + $(DUB) --compiler=dmd --config=dmd --build=debug #+END_SRC ******** version :version: @@ -284,7 +284,7 @@ dmd_debug_tangle: tangle #+BEGIN_SRC makefile :tangle ../makefile gdc: dub_upgrade - $(DUB) --compiler=gdc --config=gdc -b release + $(DUB) --compiler=gdc --config=gdc notify-send -t 0 'D gdc compiled test release executable ready' 'spine-gdc' #+END_SRC @@ -292,7 +292,7 @@ gdc: dub_upgrade #+BEGIN_SRC makefile :tangle ../makefile gdc_debug: - $(DUB) --compiler=gdc --config=gdc -b debug + $(DUB) --compiler=gdc --config=gdc --build=debug #+END_SRC ******** version :version: @@ -325,7 +325,7 @@ gdc_debug_tangle: tangle #+BEGIN_SRC makefile :tangle ../makefile ldc: dub_upgrade - $(DUB) --compiler=ldc2 --config=ldc -b release + $(DUB) --compiler=ldc2 --config=ldc --build=release notify-send -t 0 'D ldc compiled test release executable ready' 'spine-ldc' #+END_SRC @@ -333,7 +333,7 @@ ldc: dub_upgrade #+BEGIN_SRC makefile :tangle ../makefile ldc_debug: - $(DUB) --compiler=ldc2 --config=ldc -b debug + $(DUB) --compiler=ldc2 --config=ldc --build=debug #+END_SRC ******** version :version: @@ -881,9 +881,9 @@ dependency "tinyendian" version="~>0.2.0" # http://code.dlang ** default -time (dub --compiler=dmd -b release) -time (dub --compiler=ldc2 -b release) -time (dub --compiler=gdc -b release) +time (dub --compiler=dmd --build=release) +time (dub --compiler=ldc2 --build=release) +time (dub --compiler=gdc --build=release) #+BEGIN_SRC sh :tangle ../dub.sdl configuration "default" { @@ -894,8 +894,8 @@ configuration "default" { ** dmd -time (dub --compiler=dmd --config=dmd -b dmd) -time (dub --compiler=dmd --config=dmd -b dmd-release) +time (dub --compiler=dmd --config=dmd --build=dmd) +time (dub --compiler=dmd --config=dmd --build=dmd-release) #+BEGIN_SRC sh :tangle ../dub.sdl configuration "dmd" { @@ -925,8 +925,8 @@ configuration "dmd-version" { ** ldc -time (dub --compiler=ldc2 --config=ldc -b ldc) -time (dub --compiler=ldc2 --config=ldc -b ldc-release) +time (dub --compiler=ldc2 --config=ldc --build=ldc) +time (dub --compiler=ldc2 --config=ldc --build=ldc-release) #+BEGIN_SRC sh :tangle ../dub.sdl configuration "ldc" { @@ -938,6 +938,11 @@ buildType "ldc" { buildOptions "verbose" "optimize" "inline" buildRequirements "allowWarnings" } +buildType "ldc-local" { + dflags "-O2" "-J=views" "-I=src/doc_reform" "-mcpu=native" + buildOptions "verbose" "optimize" "inline" + buildRequirements "allowWarnings" +} buildType "ldc-release" { dflags "-O2" "-J=views" "-I=src/doc_reform" buildOptions "verbose" "optimize" "inline" "releaseMode" @@ -952,8 +957,8 @@ configuration "ldc-version" { ** gdc -time (dub --compiler=gdc --config=gdc -b gdc) -time (dub --compiler=gdc --config=gdc -b gdc-release) +time (dub --compiler=gdc --config=gdc --build=gdc) +time (dub --compiler=gdc --config=gdc --build=gdc-release) #+BEGIN_SRC sh :tangle ../dub.sdl configuration "gdc" { @@ -961,9 +966,9 @@ configuration "gdc" { postGenerateCommands "/usr/bin/notify-send -t 0 'D executable ready' 'spine-gdc'" } buildType "gdc" { - dflags "-O2" "-J=views" "-I=src/doc_reform" + dflags "-O" "-J=views" "-I=src/doc_reform" lflags "-lz" - buildOptions "optimize" "inline" + buildOptions "inline" buildRequirements "allowWarnings" } buildType "gdc-release" { -- cgit v1.2.3