From b82d7ce87b2aa3b9ee194230565bfe6d73262b38 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Tue, 1 Sep 2020 12:38:21 -0500 Subject: [PATCH] Fix #248 - static build on Windows --- nimterop/toast.nims | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nimterop/toast.nims b/nimterop/toast.nims index e9a3c99..e67a881 100644 --- a/nimterop/toast.nims +++ b/nimterop/toast.nims @@ -24,3 +24,7 @@ switch("out", currentSourcePath.parentDir() / "toast".addFileExt(ExeExt)) # Define TOAST for globals.nim switch("define", "TOAST") + +# Static for Windows - #248 +when defined(Windows): + switch("passL", "-static")