From 6c57a8b2493bed553dc3150231bab0da8bd8ed1d Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Sat, 20 Apr 2024 20:33:22 +0200 Subject: [PATCH] nimble 'build_ex' task: only set -d:release / -opt:speed neither release or debug is defined Signed-off-by: Christopher Arndt --- nymph.nimble | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nymph.nimble b/nymph.nimble index e7f462e..07a6136 100644 --- a/nymph.nimble +++ b/nymph.nimble @@ -57,9 +57,13 @@ task build_ex, "Build given example plugin": switch("app", "lib") switch("noMain", "on") switch("mm", "arc") - switch("opt", "speed") - switch("define", "release") 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) else: echo &"Example '{example}' not found."