def __init__(self, config: CheriConfig):
super().__init__(config)
# set up the install/build/source directories (allowing overrides from config file)
self.configureCommand = ""
# non-assignable variables:
self.make_args = MakeOptions()
self.configureArgs = [] # type: typing.List[str]
self.configureEnvironment = {} # type: typing.Dict[str,str]
if self.config.createCompilationDB and self.compileDBRequiresBear:
self._addRequiredSystemTool("bear", installInstructions="Run `cheribuild.py bear`")
self._lastStdoutLineCanBeOverwritten = False
self._preventAssign = True
if self.requiresGNUMake:
if IS_LINUX and not shutil.which("gmake"):
statusUpdate("Could not find `gmake` command, assuming `make` is GNU make")
self.makeCommand = "make"
else:
self._addRequiredSystemTool("gmake", homebrewPackage="make")
self.makeCommand = "gmake"
else:
self.makeCommand = "make"
# Make sure that API is used properly
评论列表
文章目录