mirror of
				https://github.com/containers/podman.git
				synced 2025-11-04 08:56:05 +08:00 
			
		
		
		
	Macs no longer support QEMU as a provider, build tag it out. Signed-off-by: Ashley Cui <acui@redhat.com>
		
			
				
	
	
		
			23 lines
		
	
	
		
			491 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			491 B
		
	
	
	
		
			Go
		
	
	
	
	
	
//go:build !darwin
 | 
						|
 | 
						|
package qemu
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/containers/common/pkg/config"
 | 
						|
)
 | 
						|
 | 
						|
// setNewMachineCMDOpts are options needed to pass
 | 
						|
// into setting up the qemu command line.  long term, this need
 | 
						|
// should be eliminated
 | 
						|
// TODO Podman5
 | 
						|
type setNewMachineCMDOpts struct{}
 | 
						|
 | 
						|
// findQEMUBinary locates and returns the QEMU binary
 | 
						|
func findQEMUBinary() (string, error) {
 | 
						|
	cfg, err := config.Default()
 | 
						|
	if err != nil {
 | 
						|
		return "", err
 | 
						|
	}
 | 
						|
	return cfg.FindHelperBinary(QemuCommand, true)
 | 
						|
}
 |