compiler: allow dumping the object file with ARTIQ_DUMP_OBJ.

This commit is contained in:
whitequark 2017-02-26 16:46:38 +00:00
parent dff23293c7
commit de015b994d
1 changed files with 3 additions and 0 deletions

View File

@ -156,6 +156,9 @@ class Target:
_dump(os.getenv("ARTIQ_DUMP_ASM"), "Assembly", ".s",
lambda: llmachine.emit_assembly(llmodule))
_dump(os.getenv("ARTIQ_DUMP_OBJ"), "Object file", ".o",
lambda: llmachine.emit_object(llmodule))
return llmachine.emit_object(llmodule)
def link(self, objects):