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

use default c++ if specified (#48)

parent 1953d1fa
......@@ -120,12 +120,14 @@ function compile_rocksdb() {
}
function find_stdcxx() {
if g++ --version &>/dev/null; then
CXX=g++
elif clang++ --version &>/dev/null; then
CXX=clang++
else
error failed to find valid cxx compiler.
if [[ "$CXX" = "" ]]; then
if g++ --version &>/dev/null; then
CXX=g++
elif clang++ --version &>/dev/null; then
CXX=clang++
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