From 1f72523055cf665d9f08609a3389c9757607bbd9 Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Sun, 29 Sep 2024 13:49:43 +0200 Subject: [PATCH] fix: use -fvisibility=hidden when using GCC Signed-off-by: Christopher Arndt --- nymph.nimble | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nymph.nimble b/nymph.nimble index 9a78f31..1e05282 100644 --- a/nymph.nimble +++ b/nymph.nimble @@ -72,6 +72,9 @@ task build_ex, "Build given example plugin": switch("mm", "arc") switch("out", ex.dll) + when defined(gcc): + switch("passC", "-fvisibility=hidden") + when not defined(release) and not defined(debug): echo &"Compiling plugin {ex.name} in release mode." switch("define", "release") @@ -115,4 +118,3 @@ task lv2bm, "Run lv2bm benchmark on given example plugin": exec(&"lv2bm --full-test -i white \"{ex.uri}\"") else: echo &"Example '{ex.name}' shared library not found. Use task 'build_ex' to build it." -