DEB_TARGET_RUST_TYPE = $(DEB_HOST_RUST_TYPE)
endif
-DEB_BUILD_RUST_TYPE = $(shell dpkg -L rustc | grep '/usr/lib/rustlib/' | head -n 1 | cut -d '/' -f 5)
+DEB_BUILD_RUST_TYPE = $(shell RUSTC_BOOTSTRAP=1 rustc -Z unstable-options --print target-spec-json | python3 -c 'import json,sys;obj=json.load(sys.stdin);print(obj["llvm-target"])')
* Disable testsuite.
[changes introduced in 1.37.0+dfsg1-1+rpi1 by Peter Michael Green]
* Set DEB_BUILD_RUST_TYPE based on the compiler that is actually installed.
+ [changes introduced in 1.42.0+dfsg1-1+rpi1 by Peter Michael Green]
+ * Use the compiler itself rather than dpkg to detect DEB_BUILD_RUST_TYPE
- -- Raspbian forward porter <root@raspbian.org> Sun, 19 Apr 2020 08:07:33 +0000
+ -- Peter Michael Green <plugwash@raspbian.org> Sat, 25 Apr 2020 04:53:04 +0000
rustc (1.42.0+dfsg1-1) unstable; urgency=medium