Skip to content

build: pass flex and bison to the interior cmake invocation#77

Merged
compnerd merged 1 commit into
mainfrom
compnerd/tools
Jul 15, 2026
Merged

build: pass flex and bison to the interior cmake invocation#77
compnerd merged 1 commit into
mainfrom
compnerd/tools

Conversation

@compnerd

Copy link
Copy Markdown
Owner

These tools are used to generate regsgen and not by DS2. Pass along the paths to the interior cmake invocation so that when they are not in the path the configure succeeds.

RegsGen2 is built via `ExternalProject_Add`, which reconfigures in its
own isolated build tree rather than inheriting the top-level cache.
On Windows, where flex/bison aren't on `Path` and must be located with
`-D FLEX_EXECUTABLE=`/`-D BISON_EXECUTABLE=`, the outer configure would
find them but the RegsGen2 subbuild's own `find_package(FLEX)`/
`find_package(BISON)` calls would fail, breaking the JSObjects
`FLEX_TARGET`/`BISON_TARGET` use there.

Forward `FLEX_EXECUTABLE`/`BISON_EXECUTABLE` into RegsGen2's
`CMAKE_ARGS` when set, so the subbuild can locate them the same way the
outer project does.
@compnerd
compnerd merged commit 4923a74 into main Jul 15, 2026
11 of 14 checks passed
@compnerd
compnerd deleted the compnerd/tools branch July 15, 2026 20:12
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.

1 participant