testament: error instead of silently ignore invalid targets; remove pointless alias target vs targets; document matrix; DRY (#16343)
* testament: error instead of silently ignore invalid targets * s/target/targets/ * fix test; refs #16344 * address comments * Update testament/specs.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
5514b299eb
commit
7e1ae35195
24 changed files with 33 additions and 39 deletions
|
|
@ -2,7 +2,7 @@ discard """
|
|||
output: "1"
|
||||
cmd: r"nim c --hints:on $options -d:release $file"
|
||||
ccodecheck: "'NI volatile state;'"
|
||||
target: "C"
|
||||
targets: "c"
|
||||
"""
|
||||
|
||||
# bug #1539
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ discard """
|
|||
output: "5"
|
||||
cmd: r"nim c --hints:on $options -d:release $file"
|
||||
ccodecheck: "'/*PROGMEM*/ myLetVariable = {'"
|
||||
target: "C"
|
||||
targets: "c"
|
||||
"""
|
||||
|
||||
var myLetVariable {.exportc, codegenDecl: "$# /*PROGMEM*/ $#".} = [1, 2, 3]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue