fix(ci): enforce basic CPU instruction set to prevent CI issues (#1759)

This commit is contained in:
Vaclav Pavlin 2023-05-25 13:38:30 +02:00 committed by GitHub
parent b9892120b9
commit a309eb46d8

View File

@ -64,6 +64,10 @@ TARGET ?= prod
GIT_VERSION ?= $(shell git describe --abbrev=6 --always --tags)
NIM_PARAMS := $(NIM_PARAMS) -d:git_version=\"$(GIT_VERSION)\"
## Pass CPU architecture to C compiler, use basic x86-64 instruction set by default
ARCHITECTURE ?= "x86-64"
NIM_PARAMS := $(NIM_PARAMS) --passC:\"-march=$(ARCHITECTURE)\"
## Heaptracker options
HEAPTRACKER ?= 0
HEAPTRACKER_INJECT ?= 0