File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 259
259
#codegen-tests = true
260
260
261
261
# Flag indicating whether git info will be retrieved from .git automatically.
262
- #ignore-git = false
262
+ # Having the git information can cause a lot of rebuilds during development.
263
+ # Note: If this attribute is not explicity set (e.g. it left commented out) it
264
+ # will default to true if channel = "dev", but will default to false otherwise.
265
+ #ignore-git = true
263
266
264
267
# =============================================================================
265
268
# Options for specific targets
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ impl Config {
296
296
config. rust_codegen_units = 1 ;
297
297
config. channel = "dev" . to_string ( ) ;
298
298
config. codegen_tests = true ;
299
- config. ignore_git = false ;
299
+ config. ignore_git = true ;
300
300
config. rust_dist_src = true ;
301
301
302
302
config. on_fail = flags. on_fail ;
@@ -419,7 +419,12 @@ impl Config {
419
419
set ( & mut config. use_jemalloc , rust. use_jemalloc ) ;
420
420
set ( & mut config. backtrace , rust. backtrace ) ;
421
421
set ( & mut config. channel , rust. channel . clone ( ) ) ;
422
+
423
+ // on the dev channel, ignore_git should be true by default
424
+ // on other channels it should be false by default
425
+ config. ignore_git = config. channel == "dev" ;
422
426
set ( & mut config. ignore_git , rust. ignore_git ) ;
427
+
423
428
config. rustc_default_linker = rust. default_linker . clone ( ) ;
424
429
config. rustc_default_ar = rust. default_ar . clone ( ) ;
425
430
config. musl_root = rust. musl_root . clone ( ) . map ( PathBuf :: from) ;
You can’t perform that action at this time.
0 commit comments