From f1a40fc40c964aefdac15d0a25cd69b1009da2e0 Mon Sep 17 00:00:00 2001 From: Victor Golovanenko Date: Thu, 4 Feb 2021 08:15:38 +0300 Subject: [PATCH] Build with Nimble --- .gitignore | 1 - Makefile | 4 +--- src/wpspin.nims | 5 +++++ 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 src/wpspin.nims diff --git a/.gitignore b/.gitignore index a49a0bf..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +0,0 @@ -*.nims diff --git a/Makefile b/Makefile index 3c47caa..13c68e2 100644 --- a/Makefile +++ b/Makefile @@ -9,10 +9,8 @@ SOURCE = $(SRCDIR)/wpspin.nim all: $(TARGET) $(TARGET): $(SOURCE) - nimble install -y argparse - nim compile --gc:none --checks:off --out:$@ $(SOURCE) + nimble build -d:release strip $@ - nimble uninstall -y argparse install: $(TARGET) install -d $(BINDIR) diff --git a/src/wpspin.nims b/src/wpspin.nims new file mode 100644 index 0000000..56c191e --- /dev/null +++ b/src/wpspin.nims @@ -0,0 +1,5 @@ +switch("gc", "none") + +when defined(release): + switch("checks", "off") + switch("debuginfo", "off")