@@ -1153,7 +1153,7 @@ fn changing_rustflags_is_cached() {
1153
1153
1154
1154
p. cargo ( "build" ) . run ( ) ;
1155
1155
p. cargo ( "build" )
1156
- . env ( "RUSTFLAGS" , "-C target-cpu=native " )
1156
+ . env ( "RUSTFLAGS" , "-C linker=cc " )
1157
1157
. with_stderr (
1158
1158
"\
1159
1159
[COMPILING] foo v0.0.1 ([..])
@@ -1165,7 +1165,7 @@ fn changing_rustflags_is_cached() {
1165
1165
. with_stderr ( "[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]" )
1166
1166
. run ( ) ;
1167
1167
p. cargo ( "build" )
1168
- . env ( "RUSTFLAGS" , "-C target-cpu=native " )
1168
+ . env ( "RUSTFLAGS" , "-C linker=cc " )
1169
1169
. with_stderr ( "[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]" )
1170
1170
. run ( ) ;
1171
1171
}
@@ -1191,7 +1191,7 @@ fn update_dependency_mtime_does_not_rebuild() {
1191
1191
1192
1192
p. cargo ( "build -Z mtime-on-use" )
1193
1193
. masquerade_as_nightly_cargo ( )
1194
- . env ( "RUSTFLAGS" , "-C target-cpu=native " )
1194
+ . env ( "RUSTFLAGS" , "-C linker=cc " )
1195
1195
. with_stderr (
1196
1196
"\
1197
1197
[COMPILING] bar v0.0.1 ([..])
@@ -1202,13 +1202,13 @@ fn update_dependency_mtime_does_not_rebuild() {
1202
1202
// This does not make new files, but it does update the mtime of the dependency.
1203
1203
p. cargo ( "build -p bar -Z mtime-on-use" )
1204
1204
. masquerade_as_nightly_cargo ( )
1205
- . env ( "RUSTFLAGS" , "-C target-cpu=native " )
1205
+ . env ( "RUSTFLAGS" , "-C linker=cc " )
1206
1206
. with_stderr ( "[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]" )
1207
1207
. run ( ) ;
1208
1208
// This should not recompile!
1209
1209
p. cargo ( "build -Z mtime-on-use" )
1210
1210
. masquerade_as_nightly_cargo ( )
1211
- . env ( "RUSTFLAGS" , "-C target-cpu=native " )
1211
+ . env ( "RUSTFLAGS" , "-C linker=cc " )
1212
1212
. with_stderr ( "[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]" )
1213
1213
. run ( ) ;
1214
1214
}
@@ -1269,7 +1269,7 @@ fn fingerprint_cleaner_does_not_rebuild() {
1269
1269
. run ( ) ;
1270
1270
p. cargo ( "build -Z mtime-on-use" )
1271
1271
. masquerade_as_nightly_cargo ( )
1272
- . env ( "RUSTFLAGS" , "-C target-cpu=native " )
1272
+ . env ( "RUSTFLAGS" , "-C linker=cc " )
1273
1273
. with_stderr (
1274
1274
"\
1275
1275
[COMPILING] bar v0.0.1 ([..])
@@ -1287,14 +1287,14 @@ fn fingerprint_cleaner_does_not_rebuild() {
1287
1287
// This does not make new files, but it does update the mtime.
1288
1288
p. cargo ( "build -Z mtime-on-use" )
1289
1289
. masquerade_as_nightly_cargo ( )
1290
- . env ( "RUSTFLAGS" , "-C target-cpu=native " )
1290
+ . env ( "RUSTFLAGS" , "-C linker=cc " )
1291
1291
. with_stderr ( "[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]" )
1292
1292
. run ( ) ;
1293
1293
fingerprint_cleaner ( p. target_debug_dir ( ) , timestamp) ;
1294
1294
// This should not recompile!
1295
1295
p. cargo ( "build -Z mtime-on-use" )
1296
1296
. masquerade_as_nightly_cargo ( )
1297
- . env ( "RUSTFLAGS" , "-C target-cpu=native " )
1297
+ . env ( "RUSTFLAGS" , "-C linker=cc " )
1298
1298
. with_stderr ( "[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]" )
1299
1299
. run ( ) ;
1300
1300
// But this should be cleaned and so need a rebuild
0 commit comments