Fix building on macOs

At least my mac. prometheus needs c++11
This commit is contained in:
travisladuke
2023-07-26 13:12:18 -07:00
parent e1abe23ea1
commit bfc7e3253b
+3 -3
View File
@@ -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
clang-format -i pylon.cpp -style file