nimble 'build_ex' task: only set -d:release / -opt:speed neither release or debug is defined
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
This commit is contained in:
parent
de6512b420
commit
6c57a8b249
|
@ -57,9 +57,13 @@ task build_ex, "Build given example plugin":
|
||||||
switch("app", "lib")
|
switch("app", "lib")
|
||||||
switch("noMain", "on")
|
switch("noMain", "on")
|
||||||
switch("mm", "arc")
|
switch("mm", "arc")
|
||||||
switch("opt", "speed")
|
|
||||||
switch("define", "release")
|
|
||||||
switch("out", dll)
|
switch("out", dll)
|
||||||
|
|
||||||
|
when not defined(release) and not defined(debug):
|
||||||
|
echo &"Compiling plugin {example} in release mode."
|
||||||
|
switch("define", "release")
|
||||||
|
switch("opt", "speed")
|
||||||
|
|
||||||
setCommand("compile", source)
|
setCommand("compile", source)
|
||||||
else:
|
else:
|
||||||
echo &"Example '{example}' not found."
|
echo &"Example '{example}' not found."
|
||||||
|
|
Loading…
Reference in New Issue