mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
fixed pasto in in 108b2876; background for the additional $CC test is:
GCC_MAJOR may be set even is $CC not realy gcc (but i.e. clang, which (as of 3.1) requires an addtional CFLAG to accept the non portable (gnuisms all over the place; try to cimpile tcc with Sun^HOracle, Intel, Pathscale, ... compiler) code).
This commit is contained in:
parent
cec76c8b8a
commit
bfde339b8c
2
Makefile
2
Makefile
@ -8,7 +8,7 @@ VPATH = $(top_srcdir)
|
|||||||
|
|
||||||
CPPFLAGS = -I$(TOP) # for config.h
|
CPPFLAGS = -I$(TOP) # for config.h
|
||||||
|
|
||||||
ifeq (-$(findstring clang,$(CC))-,-gcc-)
|
ifeq (-$(findstring gcc,$(CC))-,-gcc-)
|
||||||
ifeq (-$(findstring $(GCC_MAJOR),01)-,--)
|
ifeq (-$(findstring $(GCC_MAJOR),01)-,--)
|
||||||
CFLAGS+=-fno-strict-aliasing
|
CFLAGS+=-fno-strict-aliasing
|
||||||
ifeq (-$(findstring $(GCC_MAJOR),23)-,--)
|
ifeq (-$(findstring $(GCC_MAJOR),23)-,--)
|
||||||
|
Loading…
Reference in New Issue
Block a user