github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/platform/cpuid_unsupported.go (about)

     1  //go:build !amd64 || tinygo
     2  
     3  package platform
     4  
     5  var CpuFeatures CpuFeatureFlags = &cpuFeatureFlags{}
     6  
     7  // cpuFeatureFlags implements CpuFeatureFlags for unsupported platforms
     8  type cpuFeatureFlags struct{}
     9  
    10  // Has implements the same method on the CpuFeatureFlags interface
    11  func (c *cpuFeatureFlags) Has(cpuFeature CpuFeature) bool { return false }
    12  
    13  // HasExtra implements the same method on the CpuFeatureFlags interface
    14  func (c *cpuFeatureFlags) HasExtra(cpuFeature CpuFeature) bool { return false }