compiler: add support for custom code model

This commit is contained in:
Yannis Huber
2020-06-08 16:50:39 +02:00
committed by GitHub
parent 2396c22658
commit d3f5b51cd8
3 changed files with 32 additions and 1 deletions
+9
View File
@@ -272,6 +272,15 @@ func (c *Config) OpenOCDConfiguration() (args []string, err error) {
return args, nil
}
// CodeModel returns the code model used on this platform.
func (c *Config) CodeModel() string {
if c.Target.CodeModel != "" {
return c.Target.CodeModel
}
return "default"
}
type TestConfig struct {
CompileTestBinary bool
// TODO: Filter the test functions to run, include verbose flag, etc