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


Ignore:
Timestamp:
Apr 24, 2018, 1:04:35 AM (15 months ago)
Author:
Hello71
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25895, comment 6

    initial v1  
    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.
     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`.
    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).