forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class Target:
lltarget = llvm.Target.from_triple(self.triple) lltarget = llvm.Target.from_triple(self.triple)
llmachine = lltarget.create_target_machine( llmachine = lltarget.create_target_machine(
features=",".join(self.features), features=",".join(["+{}".format(f) for f in self.features]),
reloc="pic", codemodel="default") reloc="pic", codemodel="default")
if os.getenv("ARTIQ_DUMP_ASSEMBLY"): if os.getenv("ARTIQ_DUMP_ASSEMBLY"):