File tree 4 files changed +9
-4
lines changed
src/cargo/core/compiler/context
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -495,7 +495,8 @@ fn compute_metadata<'a, 'cfg>(
495
495
if !( unit. mode . is_any_test ( ) || unit. mode . is_check ( ) )
496
496
&& ( unit. target . is_dylib ( )
497
497
|| unit. target . is_cdylib ( )
498
- || ( unit. target . is_executable ( ) && unit. kind . short_name ( bcx) . starts_with ( "wasm32-" ) ) )
498
+ || ( unit. target . is_executable ( ) && unit. kind . short_name ( bcx) . starts_with ( "wasm32-" ) )
499
+ || ( unit. target . is_executable ( ) && unit. kind . short_name ( bcx) . contains ( "msvc" ) ) )
499
500
&& unit. pkg . package_id ( ) . source_id ( ) . is_path ( )
500
501
&& __cargo_default_lib_metadata. is_err ( )
501
502
{
Original file line number Diff line number Diff line change @@ -4207,8 +4207,7 @@ fn uplift_pdb_of_bin_on_windows() {
4207
4207
p. cargo ( "build --bins --examples --tests" ) . run ( ) ;
4208
4208
assert ! ( p. target_debug_dir( ) . join( "foo.pdb" ) . is_file( ) ) ;
4209
4209
assert ! ( p. target_debug_dir( ) . join( "b.pdb" ) . is_file( ) ) ;
4210
- assert ! ( !p. target_debug_dir( ) . join( "examples/c.pdb" ) . exists( ) ) ;
4211
- assert_eq ! ( p. glob( "target/debug/examples/c-*.pdb" ) . count( ) , 1 ) ;
4210
+ assert ! ( p. target_debug_dir( ) . join( "examples/c.pdb" ) . exists( ) ) ;
4212
4211
assert ! ( !p. target_debug_dir( ) . join( "c.pdb" ) . exists( ) ) ;
4213
4212
assert ! ( !p. target_debug_dir( ) . join( "d.pdb" ) . exists( ) ) ;
4214
4213
}
Original file line number Diff line number Diff line change 1
- use cargo_test_support:: { basic_manifest, project} ;
1
+ #[ cfg( not( target_env = "msvc" ) ) ]
2
+ use cargo_test_support:: basic_manifest;
3
+ use cargo_test_support:: project;
2
4
use std:: env;
3
5
4
6
#[ cargo_test]
@@ -54,6 +56,7 @@ This may become a hard error in the future; see <https://github.com/rust-lang/ca
54
56
}
55
57
56
58
#[ cargo_test]
59
+ #[ cfg( not( target_env = "msvc" ) ) ]
57
60
fn collision_example ( ) {
58
61
// Examples in a workspace can easily collide.
59
62
let p = project ( )
@@ -83,6 +86,7 @@ This may become a hard error in the future; see <https://github.com/rust-lang/ca
83
86
}
84
87
85
88
#[ cargo_test]
89
+ #[ cfg( not( target_env = "msvc" ) ) ]
86
90
fn collision_export ( ) {
87
91
// `--out-dir` combines some things which can cause conflicts.
88
92
let p = project ( )
Original file line number Diff line number Diff line change @@ -423,6 +423,7 @@ fn changing_bin_paths_common_target_features_caches_targets() {
423
423
}
424
424
425
425
#[ cargo_test]
426
+ #[ cfg( not( target_env = "msvc" ) ) ]
426
427
fn changing_bin_features_caches_targets ( ) {
427
428
let p = project ( )
428
429
. file (
You can’t perform that action at this time.
0 commit comments