Skip to content

Fix --//:enable_yosys=0 - #3340

Open
AlexanderViand wants to merge 2 commits into
mainfrom
alex/no-yosys-fix
Open

Fix --//:enable_yosys=0#3340
AlexanderViand wants to merge 2 commits into
mainfrom
alex/no-yosys-fix

Conversation

@AlexanderViand

@AlexanderViand AlexanderViand commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Trying to build without yosys failed because of missing includes (probably overly eagerly removed by some automated tool because they're only used in preprocessor-gated code?)

This has been around for a bit, and the weekly CI testing no-yosys has been failing because of it https://github.com/google/heir/actions/runs/31916922440/job/95090212968

EDIT: Did that CI ever pass? A bunch of tests do not seem to work for the non-yosys fallback branch, so I've tagged them as "requiring yosys" for now, but it looks like the non-yosys path is quite out of date?

The HEIR_NO_YOSYS branch of buildUnoptimizedBooleanPipeline uses
oneShotBufferize and createRemoveUnusedMemRef without including their
headers.
@AlexanderViand AlexanderViand added the build Issues concerning build systems and processes label Aug 17, 2026
@AlexanderViand
AlexanderViand force-pushed the alex/no-yosys-fix branch 2 times, most recently from 486d5ae to 59d86c3 Compare August 17, 2026 10:57
Adds a requires_yosys() constraint helper and applies it via
target_compatible_with to all yosys-tagged targets, so wildcard builds
and tests skip them automatically when yosys is disabled.
@AlexanderViand AlexanderViand changed the title Fix missing includes when building with --//:enable_yosys=0 Fix --//:enable_yosys=0 Aug 17, 2026
@j2kun

j2kun commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

In my view we should just remove the yosys flag entirely. The build is hermetic now and there should be no issues with the build including yosys always.

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

Labels

build Issues concerning build systems and processes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants