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.
This commit is contained in:
Daniel Micay 2021-12-26 16:24:38 -05:00
parent 9966adbdad
commit 4ccd6f16df

View File

@ -43,7 +43,7 @@ ifeq ($(CONFIG_NATIVE),true)
endif
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
SOURCES := chacha.c h_malloc.c memory.c pages.c random.c util.c