Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 629 for getInf (0.17 sec)

  1. src/cmd/go/testdata/script/build_trimpath.txt

    	if err != nil {
    		log.Fatal(err)
    	}
    
    	if os.Getenv("GO111MODULE") == "on" {
    		out, err := exec.Command("go", "env", "GOMOD").Output()
    		if err != nil {
    			log.Fatal(err)
    		}
    		modRoot := filepath.Dir(strings.TrimSpace(string(out)))
    		check(data, "module root", modRoot)
    	} else {
    		check(data, "GOPATH", os.Getenv("GOPATH"))
    	}
    	check(data, "GOROOT", os.Getenv("GOROOT"))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/internal/testenv/testenv.go

    func Builder() string {
    	return os.Getenv("GO_BUILDER_NAME")
    }
    
    // HasGoBuild reports whether the current system can build programs with “go build”
    // and then run them with os.StartProcess or exec.Command.
    func HasGoBuild() bool {
    	if os.Getenv("GO_GCFLAGS") != "" {
    		// It's too much work to require every caller of the go command
    		// to pass along "-gcflags="+os.Getenv("GO_GCFLAGS").
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/cache/default.go

    		os.WriteFile(filepath.Join(dir, "README"), []byte(cacheREADME), 0666)
    	}
    
    	diskCache, err := Open(dir)
    	if err != nil {
    		base.Fatalf("failed to initialize build cache at %s: %s\n", dir, err)
    	}
    
    	if v := cfg.Getenv("GOCACHEPROG"); v != "" && goexperiment.CacheProg {
    		defaultCache = startCacheProg(v, diskCache)
    	} else {
    		defaultCache = diskCache
    	}
    }
    
    var (
    	defaultDirOnce    sync.Once
    	defaultDir        string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testfortran/fortran_test.go

    	"os"
    	"os/exec"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"testing"
    )
    
    func TestFortran(t *testing.T) {
    	testenv.MustHaveGoRun(t)
    	testenv.MustHaveCGO(t)
    
    	// Find the FORTRAN compiler.
    	fc := os.Getenv("FC")
    	if fc == "" {
    		fc, _ = exec.LookPath("gfortran")
    	}
    	if fc == "" {
    		t.Skip("fortran compiler not found (try setting $FC)")
    	}
    
    	var fcExtra []string
    	if strings.Contains(fc, "gfortran") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 01:29:16 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/list_replace_absolute_windows.txt

    cp stdout go.mod
    
    go list -modfile=go.mod all
    -- print_go_mod.go --
    //go:build ignore
    package main
    
    import (
        "fmt"
        "os"
    )
    
    func main() {
        work := os.Getenv("WORK")
    fmt.Printf(`module example.com/mod
    
    require b.com v0.0.0
    
    replace b.com => %s\gopath\src/modb
    `,  work)
    }
    -- a.go --
    package a
    
    import _ "b.com/b"
    -- modb/go.mod --
    module b.com
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 693 bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/build_cc_cache_issue64423.txt

    package main
    
    import (
    	"bufio"
    	"bytes"
    	"log"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"strings"
    )
    
    func main() {
    	if os.Getenv("GO_BREAK_CLANG") != "" {
    		os.Stderr.WriteString("GO_BREAK_CLANG is set\n")
    		os.Exit(1)
    	}
    
    	b, err := os.ReadFile(filepath.Join(os.Getenv("WORK"), ".realclang"))
    	if err != nil {
    		log.Fatal(err)
    	}
    	clang := string(bytes.TrimSpace(b))
    	cmd := exec.Command(clang, os.Args[1:]...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:13:29 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. src/internal/coverage/cfile/emit.go

    	if err != nil {
    		fmt.Fprintf(os.Stderr, "error: coverage meta-data prep failed: %v\n", err)
    		if os.Getenv("GOCOVERDEBUG") != "" {
    			panic("meta-data write failure")
    		}
    	}
    	if len(ml) == 0 {
    		fmt.Fprintf(os.Stderr, "program not built with -cover\n")
    		return
    	}
    
    	goCoverDir = os.Getenv("GOCOVERDIR")
    	if goCoverDir == "" {
    		fmt.Fprintf(os.Stderr, "warning: GOCOVERDIR not set, no coverage data emitted\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

        "$_builder.getI32IntegerAttr($0.cast<IntegerAttr>().getInt())">;
    
    // Builds a constant bool attribute.
    class GetBoolAttr<int value> :
        NativeCodeCall<"$_builder.getBoolAttr(" # value #")">;
    
    // Converts an integer attribute $0 to 64-bit with builder.
    def convertIntAttrTo64Bit : NativeCodeCall<
        "$_builder.getI64IntegerAttr($0.cast<IntegerAttr>().getInt())">;
    
    // Extracts the single integer element from $_self.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  9. src/runtime/env_plan9.go

    // Subsequent calls to os.Setenv will change this cache, without writing back
    // to the (possibly shared) Plan 9 environment, so that Setenv and Getenv
    // conform to the same Posix semantics as on other operating systems.
    // For Plan 9 shared environment semantics, instead of Getenv(key) and
    // Setenv(key, value), one can use os.ReadFile("/env/" + key) and
    // os.WriteFile("/env/" + key, value, 0666) respectively.
    //
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 02:39:39 UTC 2022
    - 3K bytes
    - Viewed (0)
  10. testing/smoke-test/build.gradle.kts

            maxParallelForks = 1 // those tests are pretty expensive, we shouldn't execute them concurrently
            inputs.property("androidHomeIsSet", System.getenv("ANDROID_HOME") != null)
            inputs.property("androidSdkRootIsSet", System.getenv("ANDROID_SDK_ROOT") != null)
    
            if (remoteProjectOutputFiles != null) {
                inputs.files(remoteProjectOutputFiles)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top