Add HelloWorldThreaded and (actually) fix race

This commit is contained in:
Alex Hultman
2019-03-01 18:00:14 +01:00
parent 940980f501
commit 4fd895c8e7
3 changed files with 40 additions and 2 deletions
+6
View File
@@ -6,6 +6,12 @@ examples:
clang++ -flto -O3 -s *.o -o HelloWorld
rm *.o
# HelloWorldThreaded (non-SSL, non-Zlib compile)
clang -DLIBUS_NO_SSL -flto -O3 -c -IuSockets/src uSockets/src/*.c uSockets/src/eventing/*.c
clang++ -DLIBUS_NO_SSL -DUWS_NO_ZLIB -flto -O3 -c -std=c++17 -Isrc -IuSockets/src examples/HelloWorldThreaded.cpp
clang++ -lpthread -flto -O3 -s *.o -o HelloWorldThreaded
rm *.o
# EchoServer (non-SSL, non-Zlib compile)
clang -DLIBUS_NO_SSL -flto -O3 -c -IuSockets/src uSockets/src/*.c uSockets/src/eventing/*.c
clang++ -DLIBUS_NO_SSL -DUWS_NO_ZLIB -flto -O3 -c -std=c++17 -Isrc -IuSockets/src examples/EchoServer.cpp