github.com/metux/go-metabuild@v0.0.0-20240118143255-d9ed5ab697f9/util/compiler/probe/cc_test.go (about)

     1  package probe
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func TestCompilerID(t *testing.T) {
     8  	triplet, cross := CheckCross()
     9  	t.Logf("cross: %s %t", triplet, cross)
    10  
    11  	target, host, err := DetectCC()
    12  	t.Logf("target: %s\n", target)
    13  	t.Logf("host:   %s\n", host)
    14  	if err != nil {
    15  		t.Errorf("error: %s\n", err)
    16  	}
    17  }