File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1269,6 +1269,17 @@ impl Build {
1269
1269
/// Define whether metadata should be emitted for cargo to detect environment
1270
1270
/// changes that should trigger a rebuild.
1271
1271
///
1272
+ /// NOTE that cc does not emit metadata to detect changes for `PATH`, since it could
1273
+ /// be changed every comilation yet does not affect the result of compilation
1274
+ /// (i.e. rust-analyzer adds temporary directory to `PATH`).
1275
+ ///
1276
+ /// cc in general, has no way detecting changes to compiler, as there are so many ways to
1277
+ /// change it and sidestep the detection, for example the compiler might be wrapped in a script
1278
+ /// so detecting change of the file, or using checksum won't work.
1279
+ ///
1280
+ /// We recommend users to decide for themselves, if they want rebuild if the compiler has been upgraded
1281
+ /// or changed, and how to detect that.
1282
+ ///
1272
1283
/// This has no effect if the `cargo_metadata` option is `false`.
1273
1284
///
1274
1285
/// This option defaults to `true`.
You can’t perform that action at this time.
0 commit comments