Closed
Description
In order to exercise external asm code path, I needed to do this:
find -type f -print0 | xargs -0 sed -i 's/inline_asm/xxx_inline_asm/'
find -type f -print0 | xargs -0 sed -i 's/not(xxx_inline_asm)/external_asm/'
git checkout build.rs
git checkout src/lib.rs
cargo build --features external_asm
cargo test --features external_asm
git reset --hard HEAD
Since it is requirement for code paths to fully work, we need a mechanism for this.
Perhaps a in-project configuration flag, e.g. x86_64_inline_asm
,of which value would be set by rustc specific config algs inline_asm
would provide a feasible solution for this?
Metadata
Metadata
Assignees
Labels
No labels