Lines Matching refs:tspec
310 # build tspec
311 tspec = {}
312 tspec['llvm-target'] = d.getVar('RUST_TARGET_SYS', arch_abi)
313 tspec['data-layout'] = d.getVarFlag('DATA_LAYOUT', arch_abi)
314 tspec['max-atomic-width'] = int(d.getVarFlag('MAX_ATOMIC_WIDTH', arch_abi))
315 tspec['target-pointer-width'] = d.getVarFlag('TARGET_POINTER_WIDTH', arch_abi)
316 tspec['target-c-int-width'] = d.getVarFlag('TARGET_C_INT_WIDTH', arch_abi)
317 tspec['target-endian'] = d.getVarFlag('TARGET_ENDIAN', arch_abi)
318 tspec['arch'] = arch_to_rust_target_arch(rust_arch)
319 tspec['os'] = "linux"
320 if "musl" in tspec['llvm-target']:
321 tspec['env'] = "musl"
323 tspec['env'] = "gnu"
324 if "riscv64" in tspec['llvm-target']:
325 tspec['llvm-abiname'] = "lp64d"
326 if "riscv32" in tspec['llvm-target']:
327 tspec['llvm-abiname'] = "ilp32d"
328 tspec['vendor'] = "unknown"
329 tspec['target-family'] = "unix"
330 tspec['linker'] = "{}{}gcc".format(d.getVar('CCACHE'), prefix)
331 tspec['cpu'] = cpu
333 tspec['features'] = features
334 tspec['dynamic-linking'] = True
335 tspec['executables'] = True
336 tspec['linker-is-gnu'] = True
337 tspec['linker-flavor'] = "gcc"
338 tspec['has-rpath'] = True
339 tspec['has-elf-tls'] = True
340 tspec['position-independent-executables'] = True
341 tspec['panic-strategy'] = d.getVar("RUST_PANIC_STRATEGY")
345 json.dump(tspec, f, indent=4)