Gbp-Pq: Name raspbian-rust-triplet-hack.patch
@depends(rustc, when=rust_compiler)
+@imports("sys")
+@imports(_from="__builtin__", _import='repr')
@imports(_from="__builtin__", _import="ValueError")
def rust_supported_targets(rustc):
+ #HACK: if there are multiple matches the algorithm uses the last one
+ #put arm-unknown-linux-gnuebihf on the end of the list so it gets preffered
out = check_cmd_output(rustc, "--print", "target-list").splitlines()
+ out.append("arm-unknown-linux-gnueabihf")
data = {}
for t in out:
try: