Skip to content
  • Nick Mathewson's avatar
    Use a rust build script to set linker options correctly for tests. · bd9ebb37
    Nick Mathewson authored
    We need this trick because some of our Rust tests depend on our C
    code, which in turn depend on other native libraries, which thereby
    pulls a whole mess of our build system into "cargo test".
    
    To solve this, we add a build script (build.rs) to set most of the
    options that we want based on the contents of config.rust.  Some
    options can't be set, and need to go to the linker directly: we use
    a linker replacement (link_rust.sh) for these.  Both config.rust and
    link_rust.sh are generated by autoconf for us.
    
    This patch on its own should enough to make the crypto test build,
    but not necessarily enough to make it pass.
    bd9ebb37