X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=configure;h=76bee8618228276ad73ae23ec2c329d19b3213fa;hb=efdf9aa52f6ea458cb194e8c317d689ad58c89f1;hp=fa2117dcc1d3d0de1ad757e1fdbda41361b36aeb;hpb=cc44d65c19835ff24aa3bfa5b76231d522fd0070;p=rust.git diff --git a/configure b/configure index fa2117dcc1d..76bee861822 100755 --- a/configure +++ b/configure @@ -578,6 +578,7 @@ 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 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" opt inject-std-version 1 "inject the current compiler version of libstd into programs" @@ -631,18 +632,9 @@ putvar CFG_BUILD # Yes, this creates a duplicate entry, but the last one wins. CFG_HOST=$(to_llvm_triple $CFG_HOST) CFG_TARGET=$(to_llvm_triple $CFG_TARGET) -# On windows we just store the libraries in the bin directory because -# there's no rpath. This is where the build system itself puts libraries; -# --libdir is used to configure the installation directory. -# FIXME: This needs to parameterized over target triples. Do it in platform.mk -if [ "$CFG_OSTYPE" = "pc-windows-gnu" ] || [ "$CFG_OSTYPE" = "pc-windows-msvc" ] -then - CFG_LIBDIR_RELATIVE=bin -else - CFG_LIBDIR_RELATIVE=lib -fi - -valopt libdir "${CFG_PREFIX}/${CFG_LIBDIR_RELATIVE}" "install libraries (do not set it on windows platform)" +# On Windows this determines root of the subtree for target libraries. +# Host runtime libs always go to 'bin'. +valopt libdir "${CFG_PREFIX}/lib" "install libraries" case "$CFG_LIBDIR" in "$CFG_PREFIX"/*) CAT_INC=2;; @@ -653,11 +645,6 @@ esac CFG_LIBDIR_RELATIVE=`echo ${CFG_LIBDIR} | cut -c$((${#CFG_PREFIX}+${CAT_INC}))-` -if ( [ "$CFG_OSTYPE" = "pc-windows-gnu" ] || [ "$CFG_OSTYPE" = "pc-windows-msvc" ] ) \ - && [ "$CFG_LIBDIR_RELATIVE" != "bin" ]; then - err "libdir on windows should be set to 'bin'" -fi - if [ $HELP -eq 1 ] then echo @@ -766,8 +753,6 @@ probe CFG_ANTLR4 antlr4 probe CFG_GRUN grun probe CFG_FLEX flex probe CFG_BISON bison -probe CFG_PANDOC pandoc -probe CFG_XELATEX xelatex probe CFG_GDB gdb probe CFG_LLDB lldb @@ -826,26 +811,6 @@ step_msg "looking for target specific programs" probe CFG_ADB adb -if [ -n "$CFG_PANDOC" ] -then - # Extract "MAJOR MINOR" from Pandoc's version number - PV_MAJOR_MINOR=$(pandoc --version | grep '^pandoc' | - sed -E 's/pandoc(.exe)? ([0-9]+)\.([0-9]+).*/\2 \3/') - - MIN_PV_MAJOR="1" - MIN_PV_MINOR="9" - - # these patterns are shell globs, *not* regexps - PV_MAJOR=${PV_MAJOR_MINOR% *} - PV_MINOR=${PV_MAJOR_MINOR#* } - - if [ "$PV_MAJOR" -lt "$MIN_PV_MAJOR" ] || [ "$PV_MINOR" -lt "$MIN_PV_MINOR" ] - then - step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. Need at least $MIN_PV_MAJOR.$MIN_PV_MINOR. Disabling" - BAD_PANDOC=1 - fi -fi - BIN_SUF= if [ "$CFG_OSTYPE" = "pc-windows-gnu" ] || [ "$CFG_OSTYPE" = "pc-windows-msvc" ] then @@ -1775,12 +1740,6 @@ then fi -if [ -n $BAD_PANDOC ] -then - CFG_PANDOC= - putvar CFG_PANDOC -fi - putvar CFG_LLVM_SRC_DIR for t in $CFG_HOST