From bfc7e3253bac1b1860203092eef2ca2edddcdf79 Mon Sep 17 00:00:00 2001 From: travisladuke Date: Wed, 26 Jul 2023 12:58:21 -0700 Subject: [PATCH] Fix building on macOs At least my mac. prometheus needs c++11 --- makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 452aeee..0930594 100644 --- a/makefile +++ b/makefile @@ -6,13 +6,13 @@ release: git submodule update --init git -C ext/libzt submodule update --init cd ext/libzt && ./build.sh host "release" - $(CXX) -O3 $(INCLUDES) -Wno-deprecated pylon.cpp -o pylon ext/libzt/dist/*-host-release/lib/libzt.a -Iext/libzt/include + $(CXX) -O3 $(INCLUDES) -Wno-deprecated -std=c++11 pylon.cpp -o pylon ext/libzt/dist/*-host-release/lib/libzt.a -Iext/libzt/include debug: git submodule update --init git -C ext/libzt submodule update --init cd ext/libzt && ./build.sh host "debug" - $(CXX) -O3 $(INCLUDES) -DPYLON_DEBUG=1 -g -Wno-deprecated pylon.cpp -o pylon-debug ext/libzt/dist/*-host-debug/lib/libzt.a -Iext/libzt/include + $(CXX) -O3 $(INCLUDES) -DPYLON_DEBUG=1 -g -Wno-deprecated -std=c++11 pylon.cpp -o pylon-debug ext/libzt/dist/*-host-debug/lib/libzt.a -Iext/libzt/include #-fsanitize=address -DASAN_OPTIONS=symbolize=1 clean: @@ -20,4 +20,4 @@ clean: rm -f *.o tcp-proxy *.dSYM fmt: - clang-format -i pylon.cpp -style file \ No newline at end of file + clang-format -i pylon.cpp -style file