cppfront
Golem supports cppfront for projects that contain .cpp2 source files.
Installing cppfront
The easiest way to install cppfront is to use golem tools to install it into the tools cache:
golem tools install cppfront [options]Available options:
--version=<version>Git reference to install.
Default:
v0.8.1--tools-cache-directory=<path>Select the tools cache directory.
Default:
~/.cache/golem/tools
Once installed, golem configure can reuse that cached installation automatically, without requiring --cppfront-path or --cppfront-include. But provide --tools-cache-directory if not set on the default value.
To learn more about tool management, see golem tools.
Existing installation
Use golem configure to point Golem at an existing cppfront installation:
--cppfront-path=<exe_path>Path to the cppfront executable.
--cppfront-include=<dir_path>Path to cppfront’s
includedirectory.
You can also provide the same values through the CPPFRONT and CPPFRONT_INCLUDE environment variables.
Lookup order
When a project contains .cpp2 files, Golem looks for cppfront in this order:
--cppfront-pathand--cppfront-includeCPPFRONTandCPPFRONT_INCLUDE- A cached installation created by
golem tools install cppfront cppfrontonPATHfor the executable
For the cache-backed lookup, Golem uses --tools-cache-directory=<path> when provided, otherwise GOLEM_TOOLS_CACHE_DIRECTORY, otherwise ~/.cache/golem/tools.
Examples
To learn with examples have a look at: