Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MustLinkExternal (0.61 sec)

  1. src/cmd/dist/build.go

    				fatalf("%s should not exist in release build", p)
    			}
    		}
    	}
    }
    
    /*
     * Tool building
     */
    
    // mustLinkExternal is a copy of internal/platform.MustLinkExternal,
    // duplicated here to avoid version skew in the MustLinkExternal function
    // during bootstrapping.
    func mustLinkExternal(goos, goarch string, cgoEnabled bool) bool {
    	if cgoEnabled {
    		switch goarch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  2. src/syscall/exec_linux_test.go

    			os.Exit(2)
    		}
    		os.Exit(0)
    	}
    
    	d := t.TempDir()
    
    	// Since we are doing a chroot, we need the binary there,
    	// and it must be statically linked.
    	testenv.MustHaveGoBuild(t)
    	if platform.MustLinkExternal(runtime.GOOS, runtime.GOARCH, false) {
    		t.Skipf("skipping: can't build static binary because %s/%s requires external linking", runtime.GOOS, runtime.GOARCH)
    	}
    	x := filepath.Join(d, "syscall.test")
    	t.Cleanup(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/pkg.go

    // linking is not required.
    func externalLinkingReason(p *Package) (what string) {
    	// Some targets must use external linking even inside GOROOT.
    	if platform.MustLinkExternal(cfg.Goos, cfg.Goarch, false) {
    		return cfg.Goos + "/" + cfg.Goarch
    	}
    
    	// Some build modes always require external linking.
    	switch cfg.BuildBuildmode {
    	case "c-shared", "plugin":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top