diff options
| author | bors <bors@rust-lang.org> | 2015-06-05 05:11:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-06-05 05:11:01 +0000 |
| commit | d95df9a3a9fe83fbe8e9d6ecdd5dcd8aec3f42e4 (patch) | |
| tree | fd3eefec638f9e7f0283038e12bdb1c6ebf07700 | |
| parent | da0d45243bbb04ea7efec686162d0b9ce2ec4734 (diff) | |
| parent | 3d74fbd4961dc66781bc5531e5d937eaee45d99c (diff) | |
| download | rust-d95df9a3a9fe83fbe8e9d6ecdd5dcd8aec3f42e4.tar.gz rust-d95df9a3a9fe83fbe8e9d6ecdd5dcd8aec3f42e4.zip | |
Auto merge of #26004 - alexcrichton:msvc-llvm-assertions, r=brson
If LLVM assertions are enabled for MSVC, it looks like the output directory is still just `Release` (or assertions are just always ignored on MSVC).
| -rwxr-xr-x | configure | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/configure b/configure index 2829f981462..2a79e1c2a97 100755 --- a/configure +++ b/configure @@ -1307,6 +1307,12 @@ CFG_LLVM_SRC_DIR=${CFG_SRC_DIR}src/llvm/ for t in $CFG_HOST do do_reconfigure=1 + is_msvc=0 + case "$t" in + (*-msvc) + is_msvc=1 + ;; + esac if [ -z $CFG_LLVM_ROOT ] then @@ -1326,7 +1332,13 @@ do LLVM_ASSERTION_OPTS="--disable-assertions" else LLVM_ASSERTION_OPTS="--enable-assertions" - LLVM_INST_DIR=${LLVM_INST_DIR}+Asserts + + # Apparently even if we request assertions be enabled for MSVC, + # LLVM's CMake build system ignore this and outputs in `Release` + # anyway. + if [ ${is_msvc} -eq 0 ]; then + LLVM_INST_DIR=${LLVM_INST_DIR}+Asserts + fi fi else msg "not reconfiguring LLVM, external LLVM root" @@ -1356,14 +1368,7 @@ do done fi - use_cmake=0 - case "$t" in - (*-msvc) - use_cmake=1 - ;; - esac - - if [ ${do_reconfigure} -ne 0 ] && [ ${use_cmake} -ne 0 ] + if [ ${do_reconfigure} -ne 0 ] && [ ${is_msvc} -ne 0 ] then msg "configuring LLVM for $t with cmake" @@ -1388,7 +1393,7 @@ do need_ok "LLVM cmake configure failed" fi - if [ ${do_reconfigure} -ne 0 ] && [ ${use_cmake} -eq 0 ] + if [ ${do_reconfigure} -ne 0 ] && [ ${is_msvc} -eq 0 ] then # LLVM's configure doesn't recognize the new Windows triples yet gnu_t=$(to_gnu_triple $t) |
