Skip to content

Port stdarch-gen-arm to stdarch-gen-common - #2200

Open
xonx4l wants to merge 1 commit into
rust-lang:mainfrom
xonx4l:port-stdarch-gen-arm-to-common
Open

Port stdarch-gen-arm to stdarch-gen-common#2200
xonx4l wants to merge 1 commit into
rust-lang:mainfrom
xonx4l:port-stdarch-gen-arm-to-common

Conversation

@xonx4l

@xonx4l xonx4l commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

This PR Port's stdarch-gen-arm to stdarch-gen-common harness .

Since run_generator operates on a single folder but stdarch-gen-arm outputs to many core_arch/src/<arch>/<feature>/ folders main now calls run_generator once per spec file
passing that spec's output folder as the directory to check/bless.

Dropped the old stdout fallback as the harness now always writes to a real folder.

r? @folkertdev

@Kobzol Kobzol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, looks good! Left some comments. CI is red.

View changes since this review

STDARCH_GEN_MODE: check
run: |
cargo run --bin=stdarch-gen-arm --release -- crates/stdarch-gen-arm/spec
git diff --exit-code

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The git diff command shouldn't be needed anymore with STDARCH_GEN_MODE: check, right?

.ok()
.flatten()
.filter(|f| f.exists())
.expect("could not locate crates/core_arch/src; pass OUTPUT_DIR explicitly")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
.expect("could not locate crates/core_arch/src; pass OUTPUT_DIR explicitly")
.expect("could not locate crates/core_arch/src; pass OUTPUT_DIR command-line argument explicitly")

Otherwise it might look like it's an environment variable.

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.

3 participants