diff --git a/hacking/nix/scope/world/instances/default.nix b/hacking/nix/scope/world/instances/default.nix index b9ee08cfe..e1399b5e8 100644 --- a/hacking/nix/scope/world/instances/default.nix +++ b/hacking/nix/scope/world/instances/default.nix @@ -88,7 +88,7 @@ in rec { tests.root-task.config tests.root-task.tls tests.root-task.backtrace - # tests.root-task.panicking + tests.root-task.panicking tests.root-task.c tests.root-task.verus tests.root-task.dafny @@ -192,19 +192,21 @@ in rec { (_: allocFeatures: lib.flip lib.mapAttrs profile (_: release: - maybe (haveFullRuntime && haveUnwindingSupport) (mkInstance { - rootTask = mkTask { - rootCrate = crates.tests-root-task-panicking; - inherit release; - features = allocFeatures ++ [ "panic-${panicStrategyName}" ]; - extraProfile = { - panic = panicStrategyName; + let + isUnwind = panicStrategyName == "unwind"; + in + maybe (haveFullRuntime && haveUnwindingSupport) (mkInstance { + rootTask = mkTask { + rootCrate = crates.tests-root-task-panicking; + targetTriple = mkSeL4RustTargetTriple { unwind = isUnwind; }; + inherit release; + features = allocFeatures ++ [ "panic-${panicStrategyName}" ]; }; - }; - extraPlatformArgs = lib.optionalAttrs canSimulate { - canAutomateSimply = panicStrategyName == "unwind"; - }; - })))); + extraPlatformArgs = lib.optionalAttrs canSimulate { + canAutomateSimply = isUnwind; + }; + }) + ))); paths = lib.mapCartesianProduct ({ panicStrategyName, allocName, profileName }: [ panicStrategyName allocName profileName ])