Commit 1d6ab66c authored by Thomas Uram's avatar Thomas Uram
Browse files

Set flag for gnu99 on Linux only, to fix MacOS build

parent 33686f4a
......@@ -67,12 +67,18 @@ ifeq ($(UNAME_S),Linux)
OPENMPFLAG=-fopenmp
endif
# Use gnu99 only on Linux
# (ideally we would trigger on compiler rather than platform)
ifeq ($(UNAME_S),Linux)
G99FLAG=-std=gnu99
endif
FEDIR = frontend
FE_CFLAGS := -g -fPIC -O3 $(OPENMPFLAG) -std=gnu99
FE_CFLAGS := -g -fPIC -O3 $(OPENMPFLAG) $(G99FLAG)
FE_CPPFLAGS := $(BASE_CPPFLAGS) -Ithirdparty/sqlite -DGENERICIO_NO_MPI
MPIDIR = mpi
MPI_CFLAGS := -g -O3 $(OPENMPFLAG) -std=gnu99
MPI_CFLAGS := -g -O3 $(OPENMPFLAG) $(G99FLAG)
MPI_CPPFLAGS := $(BASE_CPPFLAGS)
$(FEDIR):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment