Repository navigation
Toolchain: Rust 1.99.0 -> 1.100.1 #443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ed00edf
c51e586
81a14e2
20c24b4
67d5edf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,15 +25,19 @@ TD="${CARGO_TARGET_DIR:-$ROOT/target-aarch64}" | |
| echo "==> emitting aarch64 assembly of neon-simd-parity (link step skipped)" | ||
| # Stale-assembly guard: remove any previous .s FIRST and let a build failure | ||
| # fail the script — with `|| true` and suppressed output, a broken build would | ||
| # leave an older .s for `ls -t` to pick up and the gate would PASS on assembly | ||
| # leave an older .s for the check below to read and the gate would PASS on assembly | ||
| # that does not match the source (CodeRabbit, PR #306). | ||
| rm -f "$TD/$TARGET/release/deps/"neon_simd_parity-*.s | ||
| # rustc writes the assembly to this exact path: cargo's build directory layout | ||
| # is not a stable interface, and from Rust 1.100 an `.s` emitted without a path | ||
| # no longer lands in `release/deps/`. | ||
| ASM="$TD/neon-asm-rung3/$TARGET/neon_simd_parity.s" | ||
| mkdir -p "$(dirname "$ASM")" | ||
|
Comment on lines
+33
to
+34
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When this script is invoked from the repository root with a relative override such as Useful? React with 👍 / 👎. |
||
| rm -f "$ASM" | ||
| # A cached build re-emits no .s after the rm, so force the harness crate to | ||
| # recompile (the library stays cached); see scripts/codegen-witness.sh. | ||
| touch "$ROOT/crates/neon-simd-parity/src/main.rs" | ||
| CARGO_TARGET_DIR="$TD" cargo rustc --release --manifest-path "$MANIFEST" --target "$TARGET" \ | ||
| -- --emit=asm -C debuginfo=0 | ||
| ASM="$(ls -t "$TD/$TARGET/release/deps/"neon_simd_parity-*.s | head -1)" | ||
| -- --emit="asm=$ASM" -C debuginfo=0 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolve With a relative Make Suggested fix
|
||
| [ -f "$ASM" ] || { echo "no .s produced"; exit 2; } | ||
| echo "asm: $ASM" | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create the output directory after changing to
ROOT.If the caller starts in
scriptswithCARGO_TARGET_DIR=target, Line 38 creates the witness directory underscripts/target. After Line 40, the compiler output and existence check use the corresponding path under the repository-roottarget. On a clean checkout, that output directory does not exist, so assembly generation fails. Move directory creation aftercd "$ROOT", or makeTDabsolute before using it. Default and absolute-path invocations must continue to work. The previous implementation performed its output operations after changing directory. (raw.githubusercontent.com)