File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
crate2nix/templates/nix/crate2nix Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -370,7 +370,9 @@ rec {
370
370
targetFeaturesRustcOpts = lib . lists . optional ( targetFeatures != [ ] )
371
371
"-C target-feature=${ lib . concatMapStringsSep "," ( x : "+${ x } " ) targetFeatures } " ;
372
372
373
- profileCfg = allProfiles . ${ profile } ;
373
+ profileCfg = allProfiles . ${ profile } // ( lib . optionalAttrs runTests {
374
+ panic = "unwind" ; # tests require panic=unwind
375
+ } ) ;
374
376
depProfileRustcOpts = profileToRustcOpts profileCfg true ;
375
377
buildProfileRustcOpts = profileToRustcOpts
376
378
( profileCfg // ( profileCfg . build-override or { } ) ) true ;
@@ -466,7 +468,7 @@ rec {
466
468
;
467
469
}
468
470
// ( lib . optionalAttrs ( packageId == rootPackageId ) {
469
- extraRustcOpts = ( profileToRustcOpts allProfiles . ${ profile } false ) ++ targetFeaturesRustcOpts ++ globalRustcOpts ;
471
+ extraRustcOpts = ( profileToRustcOpts profileCfg false ) ++ targetFeaturesRustcOpts ++ globalRustcOpts ;
470
472
extraRustcOptsForBuildRs =
471
473
( profileToRustcOpts ( profileCfg // ( profileCfg . build-override or { } ) ) false )
472
474
++ targetFeaturesRustcOpts ++ globalRustcOpts ;
You can’t perform that action at this time.
0 commit comments