Commit 5852bd7c authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/qemu: default acceleration to tcg on Windows [GH-2284]

parent b77042dc
...@@ -7,6 +7,7 @@ import ( ...@@ -7,6 +7,7 @@ import (
"os" "os"
"os/exec" "os/exec"
"path/filepath" "path/filepath"
"runtime"
"strings" "strings"
"time" "time"
...@@ -153,7 +154,11 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { ...@@ -153,7 +154,11 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
} }
if b.config.Accelerator == "" { if b.config.Accelerator == "" {
b.config.Accelerator = "kvm" if runtime.GOOS == "windows" {
b.config.Accelerator = "tcg"
} else {
b.config.Accelerator = "kvm"
}
} }
if b.config.HTTPPortMin == 0 { if b.config.HTTPPortMin == 0 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment