Skip to content

fix(build): track RISC-V assembly inputs - #2

Open
deepai-org wants to merge 1 commit into
jietra:mainfrom
deepai-org:fix-build-assembly-inputs
Open

deepai-org wants to merge 1 commit into
jietra:mainfrom
deepai-org:fix-build-assembly-inputs

Conversation

@deepai-org

Copy link
Copy Markdown

Fix

Declare the two RISC-V assembly inputs with cargo:rerun-if-changed in kernel/build.rs.

The build script compiles these files through cc, but does not declare their paths as Cargo rebuild inputs. An incremental build can therefore retain stale assembly after editing the startup or trap code.

This PR changes only the build dependencies; the assembly itself is unchanged.

Validation

Built the RV64 kernel with Rust 1.97.1 and clang. Then touched start.S and trap.S separately and reran the same Cargo build after each change. Both caused the generated libriscv64_objs.a to be rebuilt. The test did not edit the assembly contents.

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