Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 183 for gcflags (0.13 sec)

  1. src/cmd/go/internal/base/goflags.go

    	"cmd/internal/quoted"
    )
    
    var goflags []string // cached $GOFLAGS list; can be -x or --x form
    
    // GOFLAGS returns the flags from $GOFLAGS.
    // The list can be assumed to contain one string per flag,
    // with each string either beginning with -name or --name.
    func GOFLAGS() []string {
    	InitGOFLAGS()
    	return goflags
    }
    
    // InitGOFLAGS initializes the goflags list from $GOFLAGS.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcarchive/carchive_test.go

    	testenv.MustHaveGoBuild(t)
    
    	if !testWork {
    		defer func() {
    			os.Remove("libgo2.a")
    			os.Remove("libgo2.h")
    		}()
    	}
    
    	cmd := exec.Command("go", "build", "-buildmode=c-archive", "-gcflags=-shared=false", "-o", "libgo2.a", "./libgo2")
    	out, err := cmd.CombinedOutput()
    	t.Logf("%v\n%s", cmd.Args, out)
    	if err != nil {
    		t.Fatal(err)
    	}
    	checkLineComments(t, "libgo2.h")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  3. src/cmd/go/alldocs.go

    //
    //	    // Cgo directives
    //	    CgoCFLAGS    []string // cgo: flags for C compiler
    //	    CgoCPPFLAGS  []string // cgo: flags for C preprocessor
    //	    CgoCXXFLAGS  []string // cgo: flags for C++ compiler
    //	    CgoFFLAGS    []string // cgo: flags for Fortran compiler
    //	    CgoLDFLAGS   []string // cgo: flags for linker
    //	    CgoPkgConfig []string // cgo: pkg-config names
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  4. src/cmd/link/link_test.go

    		t.Fatal(err)
    	}
    
    	// Link with -v -linkmode=external to see the flags we pass to the
    	// external linker.
    	ldflags := "-ldflags=-v -linkmode=external -tmpdir=" + linktmp
    	var out0 []byte
    	for i := 0; i < 5; i++ {
    		cmd := testenv.Command(t, testenv.GoToolPath(t), "build", ldflags, "-o", exe, src)
    		out, err := cmd.CombinedOutput()
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
  5. doc/asm.html

    (the actual output may differ from what you see here):
    </p>
    
    <pre>
    $ cat x.go
    package main
    
    func main() {
    	println(3)
    }
    $ GOOS=linux GOARCH=amd64 go tool compile -S x.go        # or: go build -gcflags -S x.go
    "".main STEXT size=74 args=0x0 locals=0x10
    	0x0000 00000 (x.go:3)	TEXT	"".main(SB), $16-0
    	0x0000 00000 (x.go:3)	MOVQ	(TLS), CX
    	0x0009 00009 (x.go:3)	CMPQ	SP, 16(CX)
    	0x000d 00013 (x.go:3)	JLS	67
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 19:15:27 UTC 2023
    - 36.3K bytes
    - Viewed (1)
  6. src/cmd/link/elf_test.go

    		t.Logf("%s %v -c -o %s %s", cc, cflags, obj, csrcFile)
    		if out, err := testenv.Command(t, cc, append(cflags, "-c", "-o", obj, csrcFile)...).CombinedOutput(); err != nil {
    			t.Logf("%s", out)
    			t.Fatal(err)
    		}
    	}
    
    	sysoObj := filepath.Join(dir, "ldr.syso")
    	t.Logf("%s %v -nostdlib -r -o %s %v", cc, cflags, sysoObj, objs)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 16:34:01 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  7. src/cmd/go/go_test.go

    	skipIfGccgo(t, "gccgo does not support -ldflags -X")
    	tooSlow(t, "compiles and links a binary")
    
    	tg := testgo(t)
    	defer tg.cleanup()
    	tg.parallel()
    	tg.tempFile("main.go", `package main
    		var extern string
    		func main() {
    			println(extern)
    		}`)
    	tg.run("run", "-ldflags", `-X "main.extern=hello world"`, tg.path("main.go"))
    	tg.grepStderr("^hello world", `ldflags -X "main.extern=hello world"' failed`)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  8. src/cmd/go/internal/envcmd/env.go

    	defer func() {
    		if err := b.Close(); err != nil {
    			base.Fatal(err)
    		}
    	}()
    
    	cppflags, cflags, cxxflags, fflags, ldflags, err := b.CFlags(&load.Package{})
    	if err != nil {
    		// Should not happen - b.CFlags was given an empty package.
    		fmt.Fprintf(os.Stderr, "go: invalid cflags: %v\n", err)
    		return nil
    	}
    	cmd := b.GccCmd(".", "")
    
    	join := func(s []string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  9. hack/make-rules/test.sh

    testargs=()
    eval "testargs=(${KUBE_TEST_ARGS:-})"
    
    # Used to filter verbose test output.
    go_test_grep_pattern=".*"
    
    goflags=()
    # The junit report tool needs full test case information to produce a
    # meaningful report.
    if [[ -n "${KUBE_JUNIT_REPORT_DIR}" ]] ; then
      goflags+=(-v)
      goflags+=(-json)
      # Show only summary lines by matching lines like "status package/test"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 22:40:10 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/swig/swig_test.go

    		extraLDFlags := ""
    		if strings.Contains(testenv.Builder(), "clang") {
    			extraLDFlags += " -fuse-ld=lld"
    		}
    		const cflags = "-flto -Wno-lto-type-mismatch -Wno-unknown-warning-option"
    		cmd.Env = append(cmd.Environ(),
    			"CGO_CFLAGS="+cflags,
    			"CGO_CXXFLAGS="+cflags,
    			"CGO_LDFLAGS="+cflags+extraLDFlags)
    	}
    	out, err := cmd.CombinedOutput()
    	if string(out) != "OK\n" {
    		t.Errorf("%s", string(out))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top