# if configure is running in an interactive bash shell. /usr/bin/env
# exists *everywhere*.
BIN_TO_PROBE="$SHELL"
- if [ -z "$BIN_TO_PROBE" -a -e "/usr/bin/env" ]; then
- BIN_TO_PROBE="/usr/bin/env"
+ if [ ! -r "$BIN_TO_PROBE" ]; then
+ if [ -r "/usr/bin/env" ]; then
+ BIN_TO_PROBE="/usr/bin/env"
+ else
+ warn "Cannot check if the userland is i686 or x86_64"
+ fi
+ fi
+ file -L "$BIN_TO_PROBE" | grep -q "x86[_-]64"
+ if [ $? != 0 ]; then
+ msg "i686 userland on x86_64 Linux kernel"
+ CFG_CPUTYPE=i686
fi
- if [ -n "$BIN_TO_PROBE" ]; then
- file -L "$BIN_TO_PROBE" | grep -q "x86[_-]64"
- if [ $? != 0 ]; then
- CFG_CPUTYPE=i686
- fi
- fi
fi
opt ccache 0 "invoke gcc/clang via ccache to reuse object files between builds"
opt local-rust 0 "use an installed rustc rather than downloading a snapshot"
opt llvm-static-stdcpp 0 "statically link to libstdc++ for LLVM"
-opt rpath 0 "build rpaths into rustc itself"
+opt rpath 1 "build rpaths into rustc itself"
opt stage0-landing-pads 1 "enable landing pads during bootstrap with stage0"
# This is used by the automation to produce single-target nightlies
opt dist-host-only 0 "only install bins for the host architecture"
valopt i686-linux-android-ndk "" "i686-linux-android NDK standalone path"
valopt arm-linux-androideabi-ndk "" "arm-linux-androideabi NDK standalone path"
valopt aarch64-linux-android-ndk "" "aarch64-linux-android NDK standalone path"
+valopt nacl-cross-path "" "NaCl SDK path (Pepper Canary is recommended). Must be absolute!"
valopt release-channel "dev" "the name of the release channel to build"
valopt musl-root "/usr/local" "MUSL root installation directory"
+valopt extra-filename "" "Additional data that is hashed and passed to the -C extra-filename flag"
# Used on systems where "cc" and "ar" are unavailable
valopt default-linker "cc" "the default linker"
fi
done
;;
-
+ *-unknown-nacl)
+ if [ -z "$CFG_NACL_CROSS_PATH" ]
+ then
+ err "I need the NaCl SDK path! (use --nacl-cross-path)"
+ fi
+ ;;
arm-apple-darwin)
if [ $CFG_OSTYPE != apple-darwin ]
then
putvar CFG_AARCH64_LINUX_ANDROID_NDK
putvar CFG_ARM_LINUX_ANDROIDEABI_NDK
putvar CFG_I686_LINUX_ANDROID_NDK
+putvar CFG_NACL_CROSS_PATH
putvar CFG_MANDIR
putvar CFG_USING_LIBCPP