This is awful

This commit is contained in:
Cody P Schafer
2014-11-17 01:44:52 -05:00
parent c9d9b67368
commit 436d9a6593
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ PN = "rust-cross-${TARGET_ARCH}"
# The same value as ${TOOLCHAIN_OPTIONS}. We can't use that variable directly
# here because cross.bblcass is "helpful" and blanks it out.
PRE_LINK_ARGS_PREPEND = "--sysroot=${STAGING_DIR_TARGET}"
TARGET_PRE_LINK_ARGS_PREPEND = "--sysroot=${STAGING_DIR_TARGET}"
## gcc-cross settings
# INHIBIT_DEFAULT_DEPS = "1"
+2 -1
View File
@@ -113,7 +113,8 @@ def rust_gen_target(d, thing, wd):
features = d.getVarFlag('FEATURES', arch, True) or ""
pre_link_args = (d.getVarFlag('PRE_LINK_ARGS', arch, True) or "").split()
pre_link_args.extend((d.getVar('PRE_LINK_ARGS_PREPEND', True) or "").split())
if thing == 'TARGET':
pre_link_args.extend((d.getVar('TARGET_PRE_LINK_ARGS_PREPEND', True) or "").split())
o.write('''{{
"data-layout": "{}",