rust: fix target generation add 'env'

This field defaults to the empty string but for all of our targets it
should be set to GNU.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
Doug Goldstein
2016-04-07 08:46:45 -05:00
parent 95af734ac1
commit 0fb90a149c

View File

@@ -207,6 +207,7 @@ def rust_gen_target(d, thing, wd):
tspec['target-endian'] = d.getVarFlag('TARGET_ENDIAN', arch, True)
tspec['arch'] = arch_to_rust_target_arch(arch)
tspec['os'] = "linux"
tspec['env'] = "gnu"
tspec['linker'] = "{}{}gcc".format(d.getVar('CCACHE', True), prefix)
tspec['objcopy'] = "{}objcopy".format(prefix)
if features is not "":