main: add -opt= flag for the optimization level

This commit is contained in:
Ayke van Laethem
2018-10-10 14:14:45 +02:00
parent 0ed00bf6c6
commit 9406a4d74a
2 changed files with 31 additions and 16 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ func runTest(path, tmpdir string, target string, t *testing.T) {
// Build the test binary.
binary := filepath.Join(tmpdir, "test")
err = Build(path, binary, target, false, false, false, "")
err = Build(path, binary, target, "z", false, false, false, "")
if err != nil {
t.Log("failed to build:", err)
t.Fail()