+ // Link in all LLVM libraries
+ // Link in Debian full LLVM shared library.
+ // TODO: not sure what to do in the cross-compiling case.
-+ println!("cargo:rustc-link-lib={}={}", "dylib", "LLVM-3.8");
++ println!("cargo:rustc-link-lib={}={}", "dylib", "LLVM-3.9");
// LLVM ldflags
//
- f.write(")]\n")
+# Link in Debian full LLVM shared library.
+# TODO: not sure what to do in the cross-compiling case.
-+f.write("#[link(name = \"LLVM-3.8\")]\n")
++f.write("#[link(name = \"LLVM-3.9\")]\n")
# LLVM ldflags
out = run([llvm_config, '--ldflags'])
.
See https://gist.github.com/infinity0/2f5452d4ee9deb2f1bacb8b39c987c9c
for thread stacktrace during the hang; eddyb from #rustc suggests this might
- be an LLVM issue. Unsure if this is Debian-specific; we should re-enable this
- test again when we move to LLVM-3.8 (what Rust upstream is using) and if it
+ be an LLVM issue. This might be updated with our newer Debian LLVM versions;
+ we should try to re-enable this test again when we switch on armhf again.
still occurs then file a bug upstream.
Author: Ximin Luo <infinity0@debian.org>
-Bug: TODO pending LLVM-3.8 switch
+Bug: TODO pending enabling armhf in Debian
Forwarded: not-needed
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--prefix=/usr
# Use system LLVM (comment out to use vendored LLVM)
+OLD_LLVM_VERSION = 3.8
DEB_CONFIGURE_FLAGS += --llvm-root=/usr/lib/llvm-3.9
# Below we detect how we're supposed to bootstrap the stage0 compiler. See
# Note: SHELL is not set by dash, but the configure script wants to use it
override_dh_auto_configure:
+ # fail the build if we have any instances of OLD_LLVM_VERSION in debian, except for debian/changelog
+ ! grep --color=always -i 'll...$(OLD_LLVM_VERSION)' --exclude=changelog -R debian
$(PRECONFIGURE_CHECK)
SHELL=/bin/sh PATH="$$PWD/debian/bin:$$PATH" DEB_HOST_ARCH="$(DEB_HOST_ARCH)" \
./configure $(DEB_CONFIGURE_FLAGS)