mirror of
https://github.com/simh/simh.git
synced 2026-01-14 07:39:29 +00:00
makefile: Generalize the gcc -std tests to work for both MinGW and unix environments. Fix #250
This commit is contained in:
parent
0938d31e59
commit
01c410ab32
4
makefile
4
makefile
@ -902,10 +902,10 @@ ifeq (HP-UX,$(OSTYPE))
|
||||
CC_STD = -std=gnu99
|
||||
else
|
||||
ifeq (,$(SUNC_VERSION))
|
||||
ifneq (,$(findstring error,$(shell $(GCC) -std=c11 -version /dev/null 2>&1)))
|
||||
ifeq (,$(findstring error,$(shell $(GCC) -std=c11 --version 2>&1)))
|
||||
CC_STD = -std=c11
|
||||
else
|
||||
ifneq (,$(findstring error,$(shell $(GCC) -std=gnu99 -version /dev/null 2>&1)))
|
||||
ifeq (,$(findstring error,$(shell $(GCC) -std=gnu99 --version 2>&1)))
|
||||
CC_STD = -std=gnu99
|
||||
else
|
||||
CC_STD = -std=c99 -fms-extensions
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user