fix: use `when` instead of `if` for adding soname on linux (#2721)

This commit is contained in:
richΛrd 2024-05-23 10:05:53 -04:00 committed by GitHub
parent 4a6ec468db
commit cbaefeb3ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
{.pragma: callback, cdecl, raises: [], gcsafe.} {.pragma: callback, cdecl, raises: [], gcsafe.}
{.passc: "-fPIC".} {.passc: "-fPIC".}
if defined(linux): when defined(linux):
{.passl: "-Wl,-soname,libwaku.so".} {.passl: "-Wl,-soname,libwaku.so".}
import std/[json, sequtils, atomics, times, strformat, options, atomics, strutils, os] import std/[json, sequtils, atomics, times, strformat, options, atomics, strutils, os]