Allow to disable memory limit at compilation time

This commit is contained in:
Guillaume J. Charmes
2013-04-12 10:48:20 -07:00
parent b1fbebb4a3
commit 1967c8342a
5 changed files with 32 additions and 3 deletions
+4 -1
View File
@@ -13,7 +13,10 @@ endif
GIT_COMMIT = $(shell git rev-parse --short HEAD)
GIT_STATUS = $(shell test -n "`git status --porcelain`" && echo "+CHANGES")
BUILD_OPTIONS = -ldflags "-X main.GIT_COMMIT $(GIT_COMMIT)$(GIT_STATUS)"
NO_MEMORY_LIMIT ?= 0
export NO_MEMORY_LIMIT
BUILD_OPTIONS = -ldflags "-X main.GIT_COMMIT $(GIT_COMMIT)$(GIT_STATUS) -X main.NO_MEMORY_LIMIT $(NO_MEMORY_LIMIT)"
SRC_DIR := $(GOPATH)/src