diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-11-21 11:03:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-11-21 11:03:37 +0200 |
commit | a14daf38475a414e462708d9b0f4d651e5119b58 (patch) | |
tree | fa77c802d8bc7b16d91236c360853a164f13e761 /tests/variable/scope-specific | |
parent | e4c4d8d65ea675eaa56c85661ba42e112ab70f4b (diff) |
Add support for target and prerequisite specific variable blocks
For example, now instead of:
lib{foo}: cxx.loptions += -static
lib{foo}: cxx.libs += -lpthread
We can write:
lib{foo}:
{
cxx.loptions += -static
cxx.libs += -lpthread
}
The same works for prerequisites as well as target type/patterns. For
example:
exe{*.test}:
{
test = true
install = false
}
Diffstat (limited to 'tests/variable/scope-specific')
-rw-r--r-- | tests/variable/scope-specific/testscript | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/variable/scope-specific/testscript b/tests/variable/scope-specific/testscript index 5f9a05d..13e7eca 100644 --- a/tests/variable/scope-specific/testscript +++ b/tests/variable/scope-specific/testscript @@ -42,7 +42,7 @@ EOO $* <<EOI 2>>EOE != 0 foo/ [uint64] y EOI -<stdin>:1:16: error: variable assignment expected instead of <newline> +<stdin>:1:16: error: expected variable assignment instead of <newline> EOE : unexpected-attribute |