Skip to content
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

cargo-asm doesn't always recompile if a file is changed #196

Open
fogti opened this issue Jul 13, 2020 · 0 comments
Open

cargo-asm doesn't always recompile if a file is changed #196

fogti opened this issue Jul 13, 2020 · 0 comments

Comments

@fogti
Copy link

fogti commented Jul 13, 2020

I have a project, and I tried comparing the assembler output between different releases/tags, but a simple git checkout wasn't enough to invoke a recompilation.

I switched to the following commands, which work (but is a bit too much brute force):

VER=v0.5.0 # next invocation was with VER=v0.5.1
git checkout "$VER" && \
  cargo clean && \
  cargo test && \
  cargo asm indented_blocks::parse_nested_blocks &> "../ib_pnb_$VER.S"
unset VER

The following should've worked as well, but didn't:

VER=v0.5.0
git checkout "$VER" && cargo asm indented_blocks::parse_nested_blocks &> "../ib_pnb_$VER.S"
unset VER

This might be easier to check just using line numbers, which should be different between v0.5.0 and v0.5.1 (at least on x86_64).

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

No branches or pull requests

1 participant