probe_need CFG_CURLORWGET curl wget
if [ -z "$CFG_PYTHON_PROVIDED" ]; then
- probe_need CFG_PYTHON python2.7 python2.6 python2 python
+ probe_need CFG_PYTHON python2.7 python2 python
fi
python_version=$($CFG_PYTHON -V 2>&1)
-if [ $(echo $python_version | grep -c '^Python 2\.[4567]') -ne 1 ]; then
- err "Found $python_version, but LLVM requires Python 2.4-2.7"
+if [ $(echo $python_version | grep -c '^Python 2\.7') -ne 1 ]; then
+ err "Found $python_version, but Python 2.7 is required"
fi
# If we have no git directory then we are probably a tarball distribution
# Force bitrig to build with clang; gcc doesn't like us there
if [ $CFG_OSTYPE = unknown-bitrig ]
then
- step_msg "on Bitrig, forcing use of clang, disabling jemalloc"
+ step_msg "on Bitrig, forcing use of clang"
CFG_ENABLE_CLANG=1
- CFG_DISABLE_JEMALLOC=1
fi
# default gcc version under OpenBSD maybe too old, try using egcc, which is a
CXX="${CXX:-eg++}"
fi
fi
-
- step_msg "on OpenBSD, disabling jemalloc"
- CFG_DISABLE_JEMALLOC=1
-fi
-
-if [ $CFG_OSTYPE = pc-windows-gnu ]
-then
- # FIXME(#31030) - there's not a great reason to disable jemalloc here
- step_msg "on Windows, disabling jemalloc"
- CFG_DISABLE_JEMALLOC=1
fi
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
;;
*-msvc)
- # Currently the build system is not configured to build jemalloc
- # with MSVC, so we omit this optional dependency.
- step_msg "targeting MSVC, disabling jemalloc"
- CFG_DISABLE_JEMALLOC=1
- putvar CFG_DISABLE_JEMALLOC
-
# There are some MSYS python builds which will auto-translate
# windows-style paths to MSYS-style paths in Python itself.
# Unfortunately this breaks LLVM's build system as somewhere along
putvar CFG_MSVC_LIB_PATH_${bits}
;;
- *-rumprun-netbsd)
- step_msg "targeting rumprun-netbsd, disabling jemalloc"
- CFG_DISABLE_JEMALLOC=1
- putvar CFG_DISABLE_JEMALLOC
- ;;
-
- *-emscripten)
- step_msg "targeting emscripten, disabling jemalloc"
- CFG_DISABLE_JEMALLOC=1
- putvar CFG_DISABLE_JEMALLOC
- ;;
-
*)
;;
esac