Skip to content

Instantly share code, notes, and snippets.

@pythonesque
Created June 18, 2015 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pythonesque/c00bdd76987ac76a6686 to your computer and use it in GitHub Desktop.
Save pythonesque/c00bdd76987ac76a6686 to your computer and use it in GitHub Desktop.
Build flags for cuckoo
# Build instructions
# Build initial libraries
cargo build --release
# Build executable as I have been doing.
#HASH = insert hash here \
rustc src/lib.rs --crate-name libcukoo --crate-type bin \
-C target-cpu=native -C prefer-dynamic -C opt-level=3 \
-C metadata=$HASH -C extra-filename=-$HASH --out-dir ./target/release \
--emit=dep-info,link \
-L dependency=./target/release \
-L dependency=./target/release/deps \
--extern num_cpus=./target/release/deps/libnum_cpus-$HASH.rlib \
--extern rand=./target/release/deps/librand-$HASH.rlib \
-C no-stack-check -Z no-landing-pads \
--emit=asm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment