mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +00:00
main: add -opt= flag for the optimization level
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user