Add -llvm-features parameter

With this is possible to enable e.g., SIMD in WASM using -llvm-features
+simd128.  Multiple features can be specified separated by comma,
e.g., -llvm-features +simd128,+tail-call

With help from @deadprogram and @aykevl.
This commit is contained in:
Federico G. Schwindt
2021-04-28 15:53:06 +01:00
committed by Ron Evans
parent a0908ff55b
commit 617e2791ef
5 changed files with 15 additions and 1 deletions
+4
View File
@@ -337,6 +337,10 @@ func (c *Config) WasmAbi() string {
return c.Target.WasmAbi
}
func (c *Config) LLVMFeatures() string {
return c.Options.LLVMFeatures
}
type TestConfig struct {
CompileTestBinary bool
// TODO: Filter the test functions to run, include verbose flag, etc
+1
View File
@@ -36,6 +36,7 @@ type Options struct {
TestConfig TestConfig
Programmer string
OpenOCDCommands []string
LLVMFeatures string
}
// Verify performs a validation on the given options, raising an error if options are not valid.