From 5151adb9a8a842794328fd6dfc3dee40572a8d8a Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 30 Aug 2015 16:56:58 -0500 Subject: [PATCH] compiler.targets: correctly pass CPU features to LLVM. --- 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 bb808bcef..2194b73b5 100644 --- a/artiq/compiler/targets.py +++ b/artiq/compiler/targets.py @@ -100,7 +100,7 @@ class Target: lltarget = llvm.Target.from_triple(self.triple) llmachine = lltarget.create_target_machine( - features=",".join(self.features), + features=",".join(["+{}".format(f) for f in self.features]), reloc="pic", codemodel="default") if os.getenv("ARTIQ_DUMP_ASSEMBLY"):