main: move compile options to compileopts package

This commit is contained in:
Ayke van Laethem
2019-10-31 16:38:49 +01:00
committed by Ron Evans
parent ef600965aa
commit 59cc901340
3 changed files with 83 additions and 80 deletions
+8 -8
View File
@@ -115,14 +115,14 @@ func runTest(path, tmpdir string, target string, t *testing.T) {
}
// Build the test binary.
config := &BuildConfig{
opt: "z",
printIR: false,
dumpSSA: false,
verifyIR: true,
debug: false,
printSizes: "",
wasmAbi: "js",
config := &compileopts.Options{
Opt: "z",
PrintIR: false,
DumpSSA: false,
VerifyIR: true,
Debug: false,
PrintSizes: "",
WasmAbi: "js",
}
binary := filepath.Join(tmpdir, "test")
err = Build("./"+path, binary, target, config)