@@ -374,8 +374,6 @@ rec {
374
374
panic = "unwind" ; # tests require panic=unwind
375
375
} ) ;
376
376
depProfileRustcOpts = profileToRustcOpts profileCfg true ;
377
- buildProfileRustcOpts = profileToRustcOpts
378
- ( profileCfg // ( profileCfg . build-override or { } ) ) true ;
379
377
devDependencies = lib . optionals ( runTests && packageId == rootPackageId ) (
380
378
crateConfig' . devDependencies or [ ]
381
379
) ;
@@ -391,16 +389,16 @@ rec {
391
389
self . crates . ${ depPackageId }
392
390
) . override {
393
391
extraRustcOpts = depProfileRustcOpts ++ targetFeaturesRustcOpts ++ globalRustcOpts ;
394
- extraRustcOptsForBuildRs = buildProfileRustcOpts ++ targetFeaturesRustcOpts ++ globalRustcOpts ;
392
+ extraRustcOptsForBuildRs = depProfileRustcOpts ++ targetFeaturesRustcOpts ++ globalRustcOpts ;
395
393
} ;
396
394
dependencies = ( crateConfig . dependencies or [ ] ) ++ devDependencies ;
397
395
} ;
398
396
buildDependencies = dependencyDerivations {
399
397
inherit features ;
400
398
inherit ( self . build ) target ;
401
399
buildByPackageId = depPackageId : self . build . crates . ${ depPackageId } . override {
402
- extraRustcOpts = buildProfileRustcOpts ++ targetFeaturesRustcOpts ++ globalRustcOpts ;
403
- extraRustcOptsForBuildRs = buildProfileRustcOpts ++ targetFeaturesRustcOpts ++ globalRustcOpts ;
400
+ extraRustcOpts = depProfileRustcOpts ++ targetFeaturesRustcOpts ++ globalRustcOpts ;
401
+ extraRustcOptsForBuildRs = depProfileRustcOpts ++ targetFeaturesRustcOpts ++ globalRustcOpts ;
404
402
} ;
405
403
dependencies = crateConfig . buildDependencies or [ ] ;
406
404
} ;
@@ -470,7 +468,7 @@ rec {
470
468
// ( lib . optionalAttrs ( packageId == rootPackageId ) {
471
469
extraRustcOpts = ( profileToRustcOpts profileCfg false ) ++ targetFeaturesRustcOpts ++ globalRustcOpts ;
472
470
extraRustcOptsForBuildRs =
473
- ( profileToRustcOpts ( profileCfg // ( profileCfg . build-override or { } ) ) false )
471
+ ( profileToRustcOpts profileCfg false )
474
472
++ targetFeaturesRustcOpts ++ globalRustcOpts ;
475
473
} )
476
474
) ;
@@ -873,11 +871,6 @@ rec {
873
871
# split-debuginfo = "...";
874
872
strip = "none" ;
875
873
panic = "unwind" ;
876
- build-override = {
877
- opt-level = 0 ;
878
- codegen-units = 256 ;
879
- debug = false ;
880
- } ;
881
874
} ;
882
875
release = {
883
876
overflow-checks = false ;
@@ -891,10 +884,6 @@ rec {
891
884
panic = "unwind" ;
892
885
codegen-units = 16 ;
893
886
debug-assertions = false ;
894
- build-override = {
895
- opt-level = 0 ;
896
- codegen-units = 256 ;
897
- } ;
898
887
} ;
899
888
} ;
900
889
0 commit comments