From 9a8acb709120a06318b56e086364e0811eb1a488 Mon Sep 17 00:00:00 2001 From: Ludvig Strigeus Date: Sat, 17 Nov 2018 19:12:05 +0100 Subject: [PATCH] Allow debug build in build_linux --- build_linux.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build_linux.sh b/build_linux.sh index 4e87ecc..b46a4c1 100755 --- a/build_linux.sh +++ b/build_linux.sh @@ -1,7 +1,12 @@ #!/bin/sh set -e + +RELARGS="-O3 -DNDEBUG" +DBGARGS="-g -D_DEBUG" +CURARGS="$RELARGS" + clang++-6.0 -c -march=skylake-avx512 crypto/poly1305/poly1305-x64-linux.s crypto/chacha20/chacha20-x64-linux.s -clang++-6.0 -I . -O3 -DNDEBUG -DWITH_NETWORK_BSD=1 -mssse3 -pthread -lrt -o tunsafe \ +clang++-6.0 -I . $CURARGS -DWITH_NETWORK_BSD=1 -mssse3 -pthread -lrt -o tunsafe \ tunsafe_amalgam.cpp \ crypto/aesgcm/aesni_gcm-x64-linux.s \ crypto/aesgcm/aesni-x64-linux.s \