Skip to content

Commit

Permalink
Fix mixed C/Python code in ; add support on web for Python target
Browse files Browse the repository at this point in the history
  • Loading branch information
vinzbarbuto committed Oct 29, 2024
1 parent 1de4aff commit eaf35ed
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 eaf35ed

Please sign in to comment.