add wasm-abi field in TargetSpec && set generic for WASI by default (#1421)

Signed-off-by: mathetake <takeshi@tetrate.io>
This commit is contained in:
Takeshi Yoneda
2020-10-04 02:52:01 +09:00
committed by GitHub
parent 9ad2315079
commit 9a015f4f64
7 changed files with 17 additions and 9 deletions
+9
View File
@@ -329,6 +329,15 @@ func (c *Config) RelocationModel() string {
return "static"
}
// WasmAbi returns the WASM ABI which is specified in the target JSON file, and
// the value is overridden by `-wasm-abi` flag if it is provided
func (c *Config) WasmAbi() string {
if c.Options.WasmAbi != "" {
return c.Options.WasmAbi
}
return c.Target.WasmAbi
}
type TestConfig struct {
CompileTestBinary bool
// TODO: Filter the test functions to run, include verbose flag, etc