API reference
python:arxpy:arxpy.Compiler.compile_file
method compile_file
compile_file(path: str | Path, *, kind: ArtifactKind = ArtifactKind.AUTO, output: str | Path | None = None, link_mode: Literal['auto', 'pie', 'no-pie'] = 'auto') -> CompilationArtifact
Source: packages/arxpy/src/arxpy/compiler.py:630
Declared as: python:arxpy:arxpy.compiler.Compiler.compile_file
Parse and compile one source file.
Parameters
-
path — Path to the input or output resource.; Type: str | Path
-
kind — Kind of value or operation.; Type: ArtifactKind
-
output — Output destination or generated result.; Type: str | Path | None
-
link_mode — Link mode.; Type: Literal['auto', 'pie', 'no-pie']
Returns
Parsed and compile one source file.; Type: CompilationArtifact