]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #36803 - brson:node, r=alexcrichton
authorJonathan Turner <jonathandturner@users.noreply.github.com>
Thu, 29 Sep 2016 03:21:52 +0000 (20:21 -0700)
committerGitHub <noreply@github.com>
Thu, 29 Sep 2016 03:21:52 +0000 (20:21 -0700)
Move nodejs detection into bootstrap

This avoids issues with mingw path conversions.

r? @alexcrichton

1  2 
configure

diff --combined configure
index fd0397e5f87c51f36cffb25f90b2b7a0ba8a2ef5,121012a56008ac1951229446aec1ef6b6a81acc8..59a3c1c828d4edfddc9b1fdd736d281bcf4b11f0
+++ b/configure
@@@ -437,10 -437,6 +437,10 @@@ case $CFG_OSTYPE i
          CFG_CPUTYPE=$(isainfo -n)
          ;;
  
 +    Haiku)
 +        CFG_OSTYPE=unknown-haiku
 +        ;;
 +
      MINGW*)
          # msys' `uname` does not print gcc configuration, but prints msys
          # configuration. so we cannot believe `uname -m`:
@@@ -536,10 -532,6 +536,10 @@@ case $CFG_CPUTYPE i
          CFG_CPUTYPE=x86_64
          ;;
  
 +    BePC)
 +        CFG_CPUTYPE=i686
 +        ;;
 +
      *)
          err "unknown CPU type: $CFG_CPUTYPE"
  esac
@@@ -645,7 -637,6 +645,6 @@@ valopt datadir "${CFG_PREFIX}/share" "i
  valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
  valopt llvm-root "" "set LLVM root"
  valopt python "" "set path to python"
- valopt nodejs "" "set path to nodejs"
  valopt jemalloc-root "" "set directory where libjemalloc_pic.a is located"
  valopt build "${DEFAULT_BUILD}" "GNUs ./configure syntax LLVM build triple"
  valopt android-cross-path "" "Android NDK standalone path (deprecated)"
@@@ -684,7 -675,7 +683,7 @@@ valopt_nosave local-rust-root "/usr/loc
  valopt_nosave host "${CFG_BUILD}" "GNUs ./configure syntax LLVM host triples"
  valopt_nosave target "${CFG_HOST}" "GNUs ./configure syntax LLVM target triples"
  valopt_nosave mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
 -valopt_nosave docdir "${CFG_PREFIX}/share/doc/rust" "install man pages in PATH"
 +valopt_nosave docdir "${CFG_PREFIX}/share/doc/rust" "install documentation in PATH"
  
  # On Windows this determines root of the subtree for target libraries.
  # Host runtime libs always go to 'bin'.
@@@ -762,9 -753,6 +761,6 @@@ if [ $(echo $python_version | grep -c '
      err "Found $python_version, but Python 2.7 is required"
  fi
  
- # Checking for node, but not required
- probe CFG_NODEJS nodejs node
  # If we have no git directory then we are probably a tarball distribution
  # and shouldn't attempt to load submodules
  if [ ! -e ${CFG_SRC_DIR}.git ]