From de015b994dec009f59c19e7f8b5e81f32ca1ea86 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 26 Feb 2017 16:46:38 +0000 Subject: [PATCH] compiler: allow dumping the object file with ARTIQ_DUMP_OBJ. --- artiq/compiler/targets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq/compiler/targets.py b/artiq/compiler/targets.py index 0fd2aa0fe..b3cfdec8d 100644 --- a/artiq/compiler/targets.py +++ b/artiq/compiler/targets.py @@ -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):