Use gnu++14 only for Cygwin, as not recognized on OSX

This commit is contained in:
Maxime Coste 2015-05-25 19:35:32 +01:00
parent 9c57f5409a
commit d83836d026

View File

@ -9,9 +9,12 @@ bindir := $(DESTDIR)$(PREFIX)/bin
sharedir := $(DESTDIR)$(PREFIX)/share/kak sharedir := $(DESTDIR)$(PREFIX)/share/kak
docdir := $(DESTDIR)$(PREFIX)/share/doc/kak docdir := $(DESTDIR)$(PREFIX)/share/doc/kak
CXXFLAGS += -std=gnu++14 -g -Wall -Wno-reorder -Wno-sign-compare -pedantic CXXFLAGS += -g -Wall -Wno-reorder -Wno-sign-compare -pedantic
ifneq (,$(findstring CYGWIN,$(os))) ifneq (,$(findstring CYGWIN,$(os)))
CXXFLAGS += -std=gnu++14
LDFLAGS += -rdynamic LDFLAGS += -rdynamic
else
CXXFLAGS += -std=c++14
endif endif
os := $(shell uname) os := $(shell uname)