From 2d175e0354feca33a64488fd9ceffac0cf0b2fc8 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Wed, 23 Apr 2025 12:11:42 +0200 Subject: tutorial: Update DEBUG config variable to map In preparation for the rule changes, to avoid introducing false positives during future bisections. --- doc/tutorial/debugging.md | 12 ++++-------- doc/tutorial/proto.md | 6 +----- 2 files changed, 5 insertions(+), 13 deletions(-) (limited to 'doc/tutorial') diff --git a/doc/tutorial/debugging.md b/doc/tutorial/debugging.md index d59f312b..eae070b6 100644 --- a/doc/tutorial/debugging.md +++ b/doc/tutorial/debugging.md @@ -75,19 +75,15 @@ need to add a new target, configured in debug mode. , "helloworld-debug": { "type": "configure" , "target": "helloworld" - , "config": - { "type": "let*" - , "bindings": [["DEBUG", true]] - , "body": {"type": "env", "vars": ["DEBUG"]} - } + , "config": {"type": "'", "$1": {"DEBUG": {"USE_DEBUG_FISSION": false}}} } ... ``` This describes the debug version of *hello-world*, configured by setting the -`"DEBUG"` flag, which in turn will instruct the updated toolchain defaults, -which now honor the `"DEBUG"` argument, to compile all actions with the `"-g"` -flag. +`"DEBUG"` map to enable regular (non-fission) debug mode, which in turn will +instruct the updated toolchain defaults, which honor the `"DEBUG"` argument, to +compile all actions with the `"-g"` flag. To actually collect the artifacts needed to run the debugger, we use the `["CC", "install-with-deps"]` rule, contained in the `rules-cc` repository. diff --git a/doc/tutorial/proto.md b/doc/tutorial/proto.md index 1eac9c13..62e084f7 100644 --- a/doc/tutorial/proto.md +++ b/doc/tutorial/proto.md @@ -560,11 +560,7 @@ in the chapter on [*Debugging*](./hello-world.md)). , "list_people debug": { "type": "configure" , "target": "list_people" - , "config": - { "type": "let*" - , "bindings": [["DEBUG", true]] - , "body": {"type": "env", "vars": ["DEBUG"]} - } + , "config": {"type": "'", "$1": {"DEBUG": {"USE_DEBUG_FISSION": false}}} } , "list_people debug staged": { "type": ["@", "rules", "CC", "install-with-deps"] -- cgit v1.2.3