File tree 3 files changed +26
-0
lines changed 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 0.0.{build}
2
+ environment :
3
+ CARGO_TARGET : x86_64-pc-windows-gnu
4
+ matrix :
5
+ - TARGET : x86_64-pc-windows-msvc
6
+ install :
7
+ - ps : Start-FileDownload "https://static.rust-lang.org/dist/rustc-nightly-${env:TARGET}.tar.gz"
8
+ - ps : Start-FileDownload "https://static.rust-lang.org/cargo-dist/cargo-nightly-${env:CARGO_TARGET}.tar.gz"
9
+ - 7z x rustc-nightly-%TARGET%.tar.gz > nul
10
+ - 7z x rustc-nightly-%TARGET%.tar > nul
11
+ - 7z x cargo-nightly-%CARGO_TARGET%.tar.gz > nul
12
+ - 7z x cargo-nightly-%CARGO_TARGET%.tar > nul
13
+ - call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
14
+ - set PATH=%PATH%;%cd%/rustc-nightly-%TARGET%/rustc/bin
15
+ - set PATH=%PATH%;%cd%/cargo-nightly-%CARGO_TARGET%/cargo/bin
16
+ - rustc -V
17
+ - cargo -V
18
+ build_script :
19
+ - cargo build --verbose
20
+ test : false
21
+ # test_script:
22
+ # - cargo test --verbose
Original file line number Diff line number Diff line change @@ -264,6 +264,8 @@ print(sys.exec_prefix);";
264
264
265
265
if libpath != "None" {
266
266
println ! ( "cargo:rustc-link-search=native={}" , libpath) ;
267
+ } else if cfg ! ( target_os="windows" ) {
268
+ println ! ( "cargo:rustc-link-search=native={}\\ libs" , exec_prefix) ;
267
269
}
268
270
269
271
let rel_interpreter_path = if cfg ! ( target_os="windows" ) {
Original file line number Diff line number Diff line change @@ -264,6 +264,8 @@ print(sys.exec_prefix);";
264
264
265
265
if libpath != "None" {
266
266
println ! ( "cargo:rustc-link-search=native={}" , libpath) ;
267
+ } else if cfg ! ( target_os="windows" ) {
268
+ println ! ( "cargo:rustc-link-search=native={}\\ libs" , exec_prefix) ;
267
269
}
268
270
269
271
let rel_interpreter_path = if cfg ! ( target_os="windows" ) {
You can’t perform that action at this time.
0 commit comments