rust: add missing 'ar' to target spec

We need to make sure we're using the cross compiling ar instead of the
system one.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
Doug Goldstein
2016-04-07 11:48:24 -05:00
parent b13e266124
commit 5ced950596
+1
View File
@@ -263,6 +263,7 @@ def rust_gen_target(d, thing, wd):
tspec['env'] = "gnu" tspec['env'] = "gnu"
tspec['linker'] = "{}{}gcc".format(d.getVar('CCACHE', True), prefix) tspec['linker'] = "{}{}gcc".format(d.getVar('CCACHE', True), prefix)
tspec['objcopy'] = "{}objcopy".format(prefix) tspec['objcopy'] = "{}objcopy".format(prefix)
tspec['ar'] = "{}ar".format(prefix)
tspec['cpu'] = d.getVar('TARGET_LLVM_CPU', True) tspec['cpu'] = d.getVar('TARGET_LLVM_CPU', True)
if features is not "": if features is not "":
tspec['features'] = features tspec['features'] = features