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:
Jakub Sokołowski 2022-10-12 17:28:34 +02:00 committed by GitHub
parent a04a8eb266
commit 6b419277aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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