Skip to content

Commit caf9ed8

Browse files
authored
Merge pull request #291 from lf-lang/valid-target-des
Improved target property descriptions for Python
2 parents 1de4aff + eaf35ed commit caf9ed8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/reference/target-declaration.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ This target does not currently support the `build` target option.
216216
## build-type
217217

218218
<ShowIfs>
219-
<ShowIf ts py>
219+
<ShowIf ts>
220220
This target does not currently support the `build-type` target option.
221221
</ShowIf>
222-
<ShowIf rs c cpp>
222+
<ShowIf rs c cpp py>
223223
This parameter specifies how to compile the code. The following options are supported:
224224

225225
- `Debug`: Optimization is disabled and debug information is included in the executable.
@@ -401,17 +401,21 @@ This target does not support the `files` option.
401401
<ShowIf c py>
402402
The `files` target parameter specifies array of files or directories to be copied to the directory that contains the generated sources.
403403

404+
<ShowOnly c>
404405
```lf-c
405406
target C {
406407
files: ["file1", "file2", ...]
407408
}
408409
```
410+
</ShowOnly>
409411

412+
<ShowOnly py>
410413
```lf-py
411414
target Python {
412415
files: ["file1", "file2", ...]
413416
}
414417
```
418+
</ShowOnly>
415419

416420
The lookup procedure for these files and directories is as follows:
417421

0 commit comments

Comments
 (0)