From beff15de5e57c18fdecec35b79ba71f73e29fca4 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Fri, 4 Nov 2022 18:16:19 +0000 Subject: [PATCH] compiler/targets: Fix refactoring leftover for native (host) target It's unclear whether this actually caused any issues, or why this wasn't done before (instead just setting the now-removed endianness flag). --- artiq/compiler/targets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/targets.py b/artiq/compiler/targets.py index e2e0c1b24..dcaa823df 100644 --- a/artiq/compiler/targets.py +++ b/artiq/compiler/targets.py @@ -263,7 +263,7 @@ class NativeTarget(Target): def __init__(self): super().__init__() self.triple = llvm.get_default_triple() - host_data_layout = str(llvm.targets.Target.from_default_triple().create_target_machine().target_data) + self.data_layout = str(llvm.targets.Target.from_default_triple().create_target_machine().target_data) class RV32IMATarget(Target): triple = "riscv32-unknown-linux"