Commit d93b2067 authored by Jay's avatar Jay Committed by GitHub

use default c++ if specified (#48)

parent 1953d1fa
......@@ -120,6 +120,7 @@ function compile_rocksdb() {
}
function find_stdcxx() {
if [[ "$CXX" = "" ]]; then
if g++ --version &>/dev/null; then
CXX=g++
elif clang++ --version &>/dev/null; then
......@@ -127,6 +128,7 @@ function find_stdcxx() {
else
error failed to find valid cxx compiler.
fi
fi
$CXX --print-file-name libstdc++.a
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment