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

Add "slop" when anchor build #719

Merged
merged 3 commits into from
Sep 27, 2021

Conversation

Arrowana
Copy link
Contributor

@Arrowana Arrowana commented Sep 12, 2021

#642

https://github.com/clap-rs/clap/blob/44ae55fa4e33a2952f66e7d4f73782cff7c8f1f0/examples/22_stop_parsing_with_--.rs

arowana:~/the-best-projects-in-the-universe/anchor/tests/events$ ../../target/debug/anchor build -- --help
solana-cargo-build-bpf 1.7.10
Compile a local package and all of its dependencies using the Solana BPF SDK

USAGE:
    cargo-build-bpf [FLAGS] [OPTIONS]

FLAGS:
        --dump                   Dump ELF information to a text file on success
    -h, --help                   Prints help information
        --no-default-features    Do not activate the `default` feature
        --offline                Run without accessing the network
    -V, --version                Prints version information
    -v, --verbose                Use verbose output
        --workspace              Build all BPF packages in the workspace

OPTIONS:
        --bpf-out-dir <DIRECTORY>    Place final BPF build artifacts in this directory
        --bpf-sdk <PATH>             Path to the Solana BPF SDK [default:
                                     /home/<yolo>/.local/share/solana/install/releases/1.7.10/solana-
                                     release/bin/sdk/bpf]
        --features <FEATURES>...     Space-separated list of features to activate
        --manifest-path <PATH>       Path to Cargo.toml

Thoughts?

@Arrowana Arrowana marked this pull request as ready for review September 26, 2021 23:48
@Arrowana
Copy link
Contributor Author

This is only for anchor build, I suppose anchor test should run from the standard setup, but should this work for anchor deploy?

@armaniferrante
Copy link
Member

This is only for anchor build, I suppose anchor test should run from the standard setup, but should this work for anchor deploy?

Yes we should have this for any command that calls cargo build-bpf.

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.

2 participants