diff options
| author | Urs Janssen <urs@hq.tin.org> | 2013-02-15 00:53:33 +0100 |
|---|---|---|
| committer | Urs Janssen <urs@hq.tin.org> | 2013-02-15 00:53:33 +0100 |
| commit | 108b2876654bd5f64dd4a60fe1791cc939921625 (patch) | |
| tree | 64823c0cc5eaf2bdb5778e86032c454cc8fac218 | |
| parent | 0928761257b83795cd51c411fcb1c4ca75c84250 (diff) | |
| download | tinycc-108b2876654bd5f64dd4a60fe1791cc939921625.tar.gz tinycc-108b2876654bd5f64dd4a60fe1791cc939921625.tar.bz2 | |
- 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.
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | libtcc.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -8,6 +8,7 @@ VPATH = $(top_srcdir) CPPFLAGS = -I$(TOP) # for config.h +ifeq (-$(findstring clang,$(CC))-,-gcc-) ifeq (-$(findstring $(GCC_MAJOR),01)-,--) CFLAGS+=-fno-strict-aliasing ifeq (-$(findstring $(GCC_MAJOR),23)-,--) @@ -18,6 +19,7 @@ else CFLAGS+=-Wno-unused-result endif endif +endif else # not GCC ifeq (-$(findstring clang,$(CC))-,-clang-) # make clang accept gnuisms in libtcc1.c @@ -1643,7 +1643,7 @@ enum { TCC_OPTION_MD, TCC_OPTION_MF, TCC_OPTION_x, - TCC_OPTION_dumpversion + TCC_OPTION_dumpversion, }; #define TCC_OPTION_HAS_ARG 0x0001 |
