sun::driver::SunConfig
struct · Source (opens in a new tab)
struct sun::driver::SunConfigParsed project configuration used to build and run Sun targets.
Public Functions
findFrom
public · function · static · Source (opens in a new tab)
std::optional< SunConfig > sun::driver::SunConfig::findFrom(const std::filesystem::path &startDir, const std::string &targetTriple="")The merged view of every sun-config.json in startDir and its parents (nearest definitions win, search dirs and entrypoints concatenate nearest-first, a "root": true file ends the walk); nullopt when no folder has one.
Related: SunConfig
loadFile
public · function · static · Source (opens in a new tab)
SunConfig sun::driver::SunConfig::loadFile(const std::filesystem::path &file, const std::string &targetTriple="")Parse a config and select settings for the requested target or host.
Report malformed content, invalid target settings, and unknown keys.
Related: SunConfig
Public Fields
configDir
public · variable · Source (opens in a new tab)
std::filesystem::path sun::driver::SunConfig::configDirNo documentation comment.
dependencies
public · variable · Source (opens in a new tab)
std::map<std::string, ConfigDependency> sun::driver::SunConfig::dependenciesNo documentation comment.
Related: ConfigDependency
entrypoints
public · variable · Source (opens in a new tab)
std::vector<ConfigEntrypoint> sun::driver::SunConfig::entrypointsNo documentation comment.
Related: ConfigEntrypoint
kFileName
public · variable · static · Source (opens in a new tab)
const char* sun::driver::SunConfig::kFileName = "sun-config.json"No documentation comment.
packages
public · variable · Source (opens in a new tab)
std::vector<ConfigPackage> sun::driver::SunConfig::packagesNo documentation comment.
Related: ConfigPackage
pathVariables
public · variable · Source (opens in a new tab)
std::map<std::string, std::string> sun::driver::SunConfig::pathVariablesNo documentation comment.
root
public · variable · Source (opens in a new tab)
bool sun::driver::SunConfig::root = falseNo documentation comment.
sunPath
public · variable · Source (opens in a new tab)
std::vector<std::string> sun::driver::SunConfig::sunPathNo documentation comment.
targetTriple
public · variable · Source (opens in a new tab)
std::string sun::driver::SunConfig::targetTripleNo documentation comment.