Skip to content

Commit

Permalink
Merge pull request #291 from lf-lang/valid-target-des
Browse files Browse the repository at this point in the history
Improved target property descriptions for Python
  • Loading branch information
lhstrh authored Oct 29, 2024
2 parents 1de4aff + eaf35ed commit caf9ed8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/reference/target-declaration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ This target does not currently support the `build` target option.
## build-type

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

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

<ShowOnly c>
```lf-c
target C {
files: ["file1", "file2", ...]
}
```
</ShowOnly>

<ShowOnly py>
```lf-py
target Python {
files: ["file1", "file2", ...]
}
```
</ShowOnly>

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

Expand Down

0 comments on commit caf9ed8

Please sign in to comment.