summaryrefslogtreecommitdiff
path: root/doc/tutorial
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-06-18 12:46:23 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-06-26 12:11:19 +0200
commit04e873d50c65d759341e0fe472b733ecda0a9ffe (patch)
tree6bef7ccf145944a2a1ee1fec42454ee056118085 /doc/tutorial
parente1c182c7517be4f69a29a7b8f192ec2c9c379b75 (diff)
downloadjustbuild-04e873d50c65d759341e0fe472b733ecda0a9ffe.tar.gz
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.
Diffstat (limited to 'doc/tutorial')
-rw-r--r--doc/tutorial/third-party-software.md8
1 files 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":