mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-26 12:04:59 +08:00
- don't use GCC_MAJOR to see if we're not using gcc as GCC_MAJOR might be set
during configure even with --cc=notgcc as long as gcc is installed.
This commit is contained in:
parent
0928761257
commit
108b287665
2
Makefile
2
Makefile
@ -8,6 +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_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)-,--)
|
||||||
@ -18,6 +19,7 @@ else
|
|||||||
CFLAGS+=-Wno-unused-result
|
CFLAGS+=-Wno-unused-result
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
else # not GCC
|
else # not GCC
|
||||||
ifeq (-$(findstring clang,$(CC))-,-clang-)
|
ifeq (-$(findstring clang,$(CC))-,-clang-)
|
||||||
# make clang accept gnuisms in libtcc1.c
|
# make clang accept gnuisms in libtcc1.c
|
||||||
|
Loading…
Reference in New Issue
Block a user