2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-19 00:16:29 +08:00

compiler.targets: correctly pass CPU features to LLVM.

This commit is contained in:
whitequark 2015-08-30 16:56:58 -05:00
parent b263a55b1a
commit 5151adb9a8

View File

@ -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"):