mirror of
https://github.com/status-im/nimbus-build-system-desktop.git
synced 2025-02-15 15:16:22 +00:00
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"
|
SHELL := bash # the shell used internally by "make"
|
||||||
|
|
||||||
|
# Windows does not symlink cc to gcc
|
||||||
|
ifeq ($(OS), Windows_NT)
|
||||||
|
CC := gcc
|
||||||
|
else
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
|
endif
|
||||||
LD := $(CC)
|
LD := $(CC)
|
||||||
|
|
||||||
#- extra parameters for the Nim compiler
|
#- extra parameters for the Nim compiler
|
||||||
|
Loading…
x
Reference in New Issue
Block a user