From d83836d026959904058dc8e445cc9f79969d2c8e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 25 May 2015 19:35:32 +0100 Subject: [PATCH] Use gnu++14 only for Cygwin, as not recognized on OSX --- src/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 4c876a8c..10377693 100644 --- a/src/Makefile +++ b/src/Makefile @@ -9,9 +9,12 @@ bindir := $(DESTDIR)$(PREFIX)/bin sharedir := $(DESTDIR)$(PREFIX)/share/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))) + CXXFLAGS += -std=gnu++14 LDFLAGS += -rdynamic +else + CXXFLAGS += -std=c++14 endif os := $(shell uname)