From 04e873d50c65d759341e0fe472b733ecda0a9ffe Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Tue, 18 Jun 2024 12:46:23 +0200 Subject: 3rd-party tutorial: Add DEBUG flag for fmtlib export target This is good practice and it makes it easier to later demonstrate debugging, as the flag value is honored. Also renames the final repos.json example, in order to ensure that any chapters depending on the output of this chapter receives the correct repository description. --- doc/tutorial/third-party-software.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/tutorial/third-party-software.md b/doc/tutorial/third-party-software.md index bc8c8103..0ba2203e 100644 --- a/doc/tutorial/third-party-software.md +++ b/doc/tutorial/third-party-software.md @@ -104,14 +104,14 @@ targets are subject to high-level target caching, which allows to skip the analysis and traversal of entire subgraphs in the action graph. Therefore, we create an export target that exports the target `["src", "fmt"]`, with only the variables in the field -`"flexible_config"` being propagated. The top-level `TARGETS` file -contains the following content: +`"flexible_config"` being propagated. +The top-level `TARGETS` file contains the following content: ``` {.jsonc srcname="fmt-layer/TARGETS"} { "fmt": { "type": "export" , "target": ["src", "fmt"] - , "flexible_config": ["CXX", "CXXFLAGS", "ADD_CXXFLAGS", "AR", "ENV"] + , "flexible_config": ["CXX", "CXXFLAGS", "ADD_CXXFLAGS", "AR", "ENV", "DEBUG"] } } ``` @@ -389,7 +389,7 @@ target description for each repository is implemented. For the given example, the following `repos.json` defines the overlay `"common-targets-layer"`, which is used by `"fmtlib"` and `"gsl-lite"`: -``` {.jsonc srcname="repos.json"} +``` {.jsonc srcname="repos.gsl-lite.json"} { "main": "tutorial" , "repositories": { "rules-cc": -- cgit v1.2.3