forked from M-Labs/artiq
compiler.targets: correctly pass CPU features to LLVM.
This commit is contained in:
parent
b263a55b1a
commit
5151adb9a8
|
@ -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"):
|
||||||
|
|
Loading…
Reference in New Issue