encfs/vendor/github.com/muflihun/easyloggingpp/samples/async/build.sh
Valient Gough 5f0806c5cc Add "easylogging" from "https://github.com/muflihun/easyloggingpp@master"
git-vendor-name: easylogging
git-vendor-dir: vendor/github.com/muflihun/easyloggingpp
git-vendor-repository: https://github.com/muflihun/easyloggingpp
git-vendor-ref: master
2017-08-05 23:23:41 -07:00

9 lines
340 B
Bash
Executable File

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