mirror of
https://github.com/frida/tinycc
synced 2024-12-25 22:46:49 +03:00
Honor CC when testing for -Wno-unused-result
The compiler used for compiling tcc is the one referenced in the CC variable. As such, the check for -Wno-unused-result presence should be done on CC.
This commit is contained in:
parent
fc574f1498
commit
eb028a8f42
2
Makefile
2
Makefile
@ -18,7 +18,7 @@ CFLAGS+=-Wno-pointer-sign -Wno-sign-compare
|
|||||||
|
|
||||||
# add -Wno-unused-result only on gcc >= 4.4
|
# add -Wno-unused-result only on gcc >= 4.4
|
||||||
ifeq ($(GCC_MAJOR),4)
|
ifeq ($(GCC_MAJOR),4)
|
||||||
GCCGREATERTHEN44 := $(shell expr `gcc -dumpversion | cut -f2 -d.` \>= 4)
|
GCCGREATERTHEN44 := $(shell expr `$(CC) -dumpversion | cut -f2 -d.` \>= 4)
|
||||||
else
|
else
|
||||||
GCCGREATERTHEN44 := 1
|
GCCGREATERTHEN44 := 1
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user