@@ -13,8 +13,8 @@ fn from_build() -> Result<String, String> {
13
13
}
14
14
15
15
fn main ( ) {
16
- println ! ( "cargo:rerun-if-env-changed=RUSTUP_OVERRIDE_BUILD_TRIPLE" ) ;
17
- println ! ( "cargo:rerun-if-env-changed=TARGET" ) ;
16
+ println ! ( "cargo:: rerun-if-env-changed=RUSTUP_OVERRIDE_BUILD_TRIPLE" ) ;
17
+ println ! ( "cargo:: rerun-if-env-changed=TARGET" ) ;
18
18
match from_build ( ) {
19
19
Ok ( triple) => eprintln ! ( "Computed build based on target triple: {triple:#?}" ) ,
20
20
Err ( s) => {
@@ -26,7 +26,7 @@ fn main() {
26
26
}
27
27
}
28
28
let target = env:: var ( "TARGET" ) . unwrap ( ) ;
29
- println ! ( "cargo:rustc-env=TARGET={target}" ) ;
29
+ println ! ( "cargo:: rustc-env=TARGET={target}" ) ;
30
30
31
31
// Set linker options specific to Windows MSVC.
32
32
let target_os = env:: var ( "CARGO_CFG_TARGET_OS" ) ;
@@ -40,7 +40,7 @@ fn main() {
40
40
// This applies to DLLs loaded at load time. However, this setting is ignored
41
41
// before Windows 10 RS1 (aka 1601).
42
42
// https://learn.microsoft.com/en-us/cpp/build/reference/dependentloadflag?view=msvc-170
43
- println ! ( "cargo:cargo :rustc-link-arg-bin=rustup-init=/DEPENDENTLOADFLAG:0x800" ) ;
43
+ println ! ( "cargo::rustc-link-arg-bin=rustup-init=/DEPENDENTLOADFLAG:0x800" ) ;
44
44
45
45
// # Delay load
46
46
//
@@ -55,16 +55,16 @@ fn main() {
55
55
// See also: src/bin/rustup-init.rs
56
56
let delay_load_dlls = [ "bcrypt" , "api-ms-win-core-synch-l1-2-0" ] ;
57
57
for dll in delay_load_dlls {
58
- println ! ( "cargo:rustc-link-arg-bin=rustup-init=/delayload:{dll}.dll" ) ;
58
+ println ! ( "cargo:: rustc-link-arg-bin=rustup-init=/delayload:{dll}.dll" ) ;
59
59
}
60
60
// When using delayload, it's necessary to also link delayimp.lib
61
61
// https://learn.microsoft.com/en-us/cpp/build/reference/dependentloadflag?view=msvc-170
62
- println ! ( "cargo:rustc-link-arg-bin=rustup-init=delayimp.lib" ) ;
62
+ println ! ( "cargo:: rustc-link-arg-bin=rustup-init=delayimp.lib" ) ;
63
63
64
64
// # Turn linker warnings into errors
65
65
//
66
66
// Rust hides linker warnings meaning mistakes may go unnoticed.
67
67
// Turning them into errors forces them to be displayed (and the build to fail).
68
68
// If we do want to ignore specific warnings then `/IGNORE:` should be used.
69
- println ! ( "cargo:rustc-link-arg-bin=rustup-init=/WX" ) ;
69
+ println ! ( "cargo:: rustc-link-arg-bin=rustup-init=/WX" ) ;
70
70
}
0 commit comments