hardcode CC to gcc for windows (#52)
Windows doesn't have a `cc` symlnk and this results in build failure: ``` C compiler (cc) not installed. Aborting. ``` Because `?=` operator treats `CC` as already set, since it defaults to `cc`: https://www.gnu.org/software/make/manual/make.html#Implicit-Variables
This commit is contained in:
parent
a04a8eb266
commit
6b419277aa
|
@ -7,7 +7,12 @@
|
|||
|
||||
SHELL := bash # the shell used internally by "make"
|
||||
|
||||
# Windows does not symlink cc to gcc
|
||||
ifeq ($(OS), Windows_NT)
|
||||
CC := gcc
|
||||
else
|
||||
CC ?= gcc
|
||||
endif
|
||||
LD := $(CC)
|
||||
|
||||
#- extra parameters for the Nim compiler
|
||||
|
|
Loading…
Reference in New Issue