Skip to content

Commit 2c424ef

Browse files
mortbopetteqdruid
andauthored
[ESI] Set '--output-split' for verilator compilation (llvm#8978)
* [ESI] Set '--output-split' for verilator compilation ... which also enables parallel compilation and better ccache support. E.g. an internal simple test: - without split: 8.2s compile time - with split: 1.3s compile time * correct flags --------- Co-authored-by: John Demme <[email protected]>
1 parent 0886d5e commit 2c424ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Dialect/ESI/runtime/cosim_dpi_server/esi-cosim.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,11 @@ def compile_commands(self) -> List[List[str]]:
264264
"-Wno-TIMESCALEMOD",
265265
"-Wno-fatal",
266266
"-sv",
267-
"--build",
268267
"--exe",
268+
"--build",
269+
"-j",
270+
"0",
271+
"--output-split",
269272
"--assert",
270273
str(Verilator.DefaultDriver),
271274
]

0 commit comments

Comments
 (0)