mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-09 12:01:45 +00:00
In case native GCC is missing, inform user
This commit is contained in:
parent
52c65661d8
commit
2fba9848ae
3 changed files with 9 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
|||
NATIVE_CC ?= gcc
|
||||
|
||||
ifeq (, $(shell which $(NATIVE_CC) 2>/dev/null))
|
||||
$(error "Native GCC is missing. Please install it first. If it's path is custom, set it with export NATIVE_CC=<path to native gcc toolchain>")
|
||||
endif
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: bin2c
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
NATIVE_CC ?= gcc
|
||||
|
||||
ifeq (, $(shell which $(NATIVE_CC) 2>/dev/null))
|
||||
$(error "Native GCC is missing. Please install it first. If it's path is custom, set it with export NATIVE_CC=<path to native gcc toolchain>")
|
||||
endif
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: lz77
|
||||
|
|
|
@ -33,7 +33,7 @@ int main(int argc, char *argv[])
|
|||
if(stat(argv[1], &statbuf))
|
||||
goto error;
|
||||
|
||||
if((in_file=fopen(argv[1], "r")) == NULL)
|
||||
if((in_file=fopen(argv[1], "rb")) == NULL)
|
||||
goto error;
|
||||
|
||||
strcpy(filename, argv[1]);
|
||||
|
|
Loading…
Reference in a new issue