Skip to content

script: keep untyped files in flist output#316

Open
micprog wants to merge 1 commit into
masterfrom
fix/flist-untyped-files
Open

script: keep untyped files in flist output#316
micprog wants to merge 1 commit into
masterfrom
fix/flist-untyped-files

Conversation

@micprog

@micprog micprog commented Jun 15, 2026

Copy link
Copy Markdown
Member

Regression from v0.30.0 (d0c1e13): switching the flist/flist-plus templates from all_files to the per-type split source groups silently dropped files whose extension isn't a recognized HDL type (.c, .tcl, .txt, ...), because untyped files were never emitted into those groups.

Emit untyped files as their own groups (file_type = None) so they reappear in flist/flist-plus. Tool-script formats that branch on file type (vsim, vcs, synopsys, formality, riviera, genus, precision) previously fell through their file_type != '' guard and emitted broken compile commands for such files; they now comment them out instead. Type-agnostic (vivado) and Verilog-only (verilator) formats are unaffected.

Add a regression fixture with a non-HDL file plus tests covering flist inclusion and tool-script commenting.

Regression from v0.30.0 (d0c1e13): switching the flist/flist-plus templates
from `all_files` to the per-type split source groups silently dropped files
whose extension isn't a recognized HDL type (.c, .tcl, .txt, ...), because
untyped files were never emitted into those groups.

Emit untyped files as their own groups (file_type = None) so they reappear in
flist/flist-plus. Tool-script formats that branch on file type (vsim, vcs,
synopsys, formality, riviera, genus, precision) previously fell through their
`file_type != ''` guard and emitted broken compile commands for such files;
they now comment them out instead. Type-agnostic (vivado) and Verilog-only
(verilator) formats are unaffected.

Add a regression fixture with a non-HDL file plus tests covering flist
inclusion and tool-script commenting.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@micprog micprog requested a review from fischeti June 15, 2026 15:17

@fischeti fischeti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants