Skip to content

Commit

Permalink
test adding lib ws2_32 directly with nim
Browse files Browse the repository at this point in the history
  • Loading branch information
lchenut committed Jun 28, 2024
1 parent 02f745c commit 5ac890a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webrtc.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@ let lang = getEnv("NIMLANG", "c") # Which backend (c/cpp/js)
let flags = getEnv("NIMFLAGS", "") # Extra flags for the compiler
let verbose = getEnv("V", "") notin ["", "0"]

let cfg =
var cfg =
" --styleCheck:usages --styleCheck:error" &
(if verbose: "" else: " --verbosity:0 --hints:off") &
" --skipParentCfg --skipUserCfg -f" &
" --threads:on --opt:speed"

when defined windows:
echo "Add -lws2_32 to cfg"
cfg = cfg & " --clib:ws2_32"

import hashes

proc runTest(filename: string) =
Expand Down

0 comments on commit 5ac890a

Please sign in to comment.