From a83f330d7490bc1ad45b69f2f5232d01d4bdceec 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 f25d8f77d..ee9b0a3b7 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"