Changes between Version 1 and Version 2 of Ticket #25895, comment 6


Ignore:
Timestamp:
Apr 24, 2018, 1:32:24 AM (3 months ago)
Author:
Hello71
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25895, comment 6

    v1 v2  
    33the cleanest way to do this AFAICT is:
    44
    5 if CBUILD != CHOST, set `build.target = @CHOST@` in src/rust/.cargo/config, and set tor rust path to `src/rust/target/@CHOST@/release/@tor_rust_static_name@`. as far as I can tell, cargo does produce a `lib` file on Windows, and this is the correct extension for us. edit: we probably also need to set `target.@CHOST@.{linker,ar}` to `$LD` and `$AR`.
     5if CBUILD != CHOST, set `build.target = @CHOST@` in src/rust/.cargo/config, and set tor rust path to `src/rust/target/@CHOST@/release/@tor_rust_static_name@`. as far as I can tell, cargo does produce a `lib` file on Windows, and this is the correct extension for us. ~~edit: we probably also need to set `target.@CHOST@.{linker,ar}` to `$LD` and `$AR`.~~ edit 2: apparently `ar` isn't used anymore, and I'm pretty sure we don't need the linker to build a static library.
    66
    77else, do not set build.target (`build.target = ''` causes an error), set tor rust path to `src/rust/target/release/@tor_rust_static_name@` (the same as it is now).