Skip to content

Provide means to test external_asm code path #337

Closed
@jarkkojs

Description

@jarkkojs

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions