encfs/vendor/github.com/muflihun/easyloggingpp/samples/async/build.sh

9 lines
340 B
Bash
Raw Normal View History

compiler=$1
macros=""
macros="$macros -DELPP_FEATURE_ALL"
if [ "$compiler" = "icpc" ];then
macros="$macros -DELPP_NO_SLEEP_FOR"
fi
echo "$compiler prog.cpp easylogging++.cc -DELPP_EXPERIMENTAL_ASYNC $macros -std=c++11 -lpthread -o prog"
$compiler prog.cpp easylogging++.cc -DELPP_EXPERIMENTAL_ASYNC $macros -std=c++11 -lpthread -o prog