diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-12-13 16:13:19 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-12-16 10:26:39 +0100 |
commit | 0fea1101050ef38e94a8afa4febc8b681f769ff2 (patch) | |
tree | 24ca4d92556c47792a57e290742c50076d5486c6 /doc | |
parent | 050969887e95912164956dfbf200d06ee337c46c (diff) | |
download | justbuild-0fea1101050ef38e94a8afa4febc8b681f769ff2.tar.gz |
tutorial: Fix use of new rule interface
Diffstat (limited to 'doc')
-rw-r--r-- | doc/tutorial/target-file-glob-tree.org | 4 | ||||
-rw-r--r-- | doc/tutorial/tests.org | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/tutorial/target-file-glob-tree.org b/doc/tutorial/target-file-glob-tree.org index bc1d388d..72ea1732 100644 --- a/doc/tutorial/target-file-glob-tree.org +++ b/doc/tutorial/target-file-glob-tree.org @@ -282,7 +282,7 @@ attempt of defining the binary is as follows. , "units": { "type": ["@", "rules", "CC", "binary"] , "name": ["units"] - , "link external": ["-lm"] + , "private-ldflags": ["-lm"] , "pure C": ["YES"] , "srcs": [["GLOB", null, "*.c"]] , "private-hdrs": [["GLOB", null, "*.h"]] @@ -345,7 +345,7 @@ Then we amend our ~"units"~ target. , "units": { "type": ["@", "rules", "CC", "binary"] , "name": ["units"] - , "link external": ["-lm"] + , "private-ldflags": ["-lm"] , "pure C": ["YES"] , "srcs": ["patched srcs"] , "private-hdrs": [["GLOB", null, "*.h"]] diff --git a/doc/tutorial/tests.org b/doc/tutorial/tests.org index f8ad0f6d..d05eb945 100644 --- a/doc/tutorial/tests.org +++ b/doc/tutorial/tests.org @@ -81,7 +81,7 @@ the rule ~["@", "rules", "CC/test", "test"]~ and needs to depend on the { "type": ["@", "rules", "CC/test", "test"] , "name": ["test_greet"] , "srcs": ["greet.test.cpp"] - , "deps": ["greet"] + , "private-deps": ["greet"] } } #+END_SRC |