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