always enable C++17
The safe_flag check doesn't work properly for C++ flags with Clang so this wasn't getting enabled despite the conditional compilation being removed from the code, leading to breaking Clang builds.pull/161/head
parent
9966adbdad
commit
4ccd6f16df
2
Makefile
2
Makefile
|
@ -43,7 +43,7 @@ ifeq ($(CONFIG_NATIVE),true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS := $(CFLAGS) -std=c11 $(SHARED_FLAGS) -Wmissing-prototypes
|
CFLAGS := $(CFLAGS) -std=c11 $(SHARED_FLAGS) -Wmissing-prototypes
|
||||||
CXXFLAGS := $(CXXFLAGS) $(call safe_flag,-std=c++17,-std=c++14) $(SHARED_FLAGS)
|
CXXFLAGS := $(CXXFLAGS) -std=c++17 $(SHARED_FLAGS)
|
||||||
LDFLAGS := $(LDFLAGS) -Wl,--as-needed,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text
|
LDFLAGS := $(LDFLAGS) -Wl,--as-needed,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text
|
||||||
|
|
||||||
SOURCES := chacha.c h_malloc.c memory.c pages.c random.c util.c
|
SOURCES := chacha.c h_malloc.c memory.c pages.c random.c util.c
|
||||||
|
|
Loading…
Reference in New Issue