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")