Skip to content

Commit 019603a

Browse files
committed
Default emit_rerun_if_env_changed to true
1 parent 0b25dbf commit 019603a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ impl Build {
323323
warnings_into_errors: false,
324324
env_cache: Arc::new(Mutex::new(HashMap::new())),
325325
apple_sdk_root_cache: Arc::new(Mutex::new(HashMap::new())),
326-
emit_rerun_if_env_changed: false,
326+
emit_rerun_if_env_changed: true,
327327
}
328328
}
329329

@@ -899,7 +899,7 @@ impl Build {
899899
/// - `rustc-link-search=native=`*target folder*
900900
/// - When target is MSVC, the ATL-MFC libs are added via `rustc-link-search=native=`
901901
/// - When C++ is enabled, the C++ stdlib is added via `rustc-link-lib`
902-
/// - If `emit_rerun_if_env_changed` is `true`, `rerun-if-env-changed=`*env*
902+
/// - If `emit_rerun_if_env_changed` is not `false`, `rerun-if-env-changed=`*env*
903903
///
904904
pub fn cargo_metadata(&mut self, cargo_metadata: bool) -> &mut Build {
905905
self.cargo_metadata = cargo_metadata;
@@ -945,7 +945,7 @@ impl Build {
945945
///
946946
/// This has no effect if the `cargo_metadata` option is `false`.
947947
///
948-
/// This option defaults to `false`.
948+
/// This option defaults to `true`.
949949
pub fn emit_rerun_if_env_changed(&mut self, emit_rerun_if_env_changed: bool) -> &mut Build {
950950
self.emit_rerun_if_env_changed = emit_rerun_if_env_changed;
951951
self

0 commit comments

Comments
 (0)