Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 108 for gcflags (0.3 sec)

  1. src/cmd/compile/internal/test/inl_test.go

    		args := []string{"build", "-gcflags=runtime=-m", "runtime"}
    		cmd := testenv.Command(t, testenv.GoToolPath(t), args...)
    		b, err := cmd.CombinedOutput()
    		if err != nil {
    			t.Fatalf("build failed (%v): %s", err, b)
    		}
    		mbase := collectInlCands(string(b))
    
    		// Redo the build with -cover, also with "-m".
    		args = []string{"build", "-gcflags=runtime=-m", mode, "runtime"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/debug_test.go

    		}
    		testNexting(t, basename, tag, gcflags, 1000, moreargs...)
    	})
    }
    
    // skipSubTest is the same as subTest except that it skips the test if execution is not forced (-f)
    func skipSubTest(t *testing.T, tag string, basename string, gcflags string, count int, moreargs ...string) {
    	t.Run(tag+"-"+basename, func(t *testing.T) {
    		if *force {
    			testNexting(t, basename, tag, gcflags, count, moreargs...)
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/dwarf_test.go

    		t.Helper()
    		t.Skipf("skipping on %s/%s: no DWARF symbol table in executables", runtime.GOOS, runtime.GOARCH)
    	}
    }
    
    const (
    	DefaultOpt = "-gcflags="
    	NoOpt      = "-gcflags=-l -N"
    	OptInl4    = "-gcflags=-l=4"
    	OptAllInl4 = "-gcflags=all=-l=4"
    )
    
    func TestRuntimeTypesPresent(t *testing.T) {
    	t.Parallel()
    	testenv.MustHaveGoBuild(t)
    
    	mustHaveDWARF(t)
    
    	dir := t.TempDir()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/gc.go

    	} else {
    		compiler = envList("CC", cfg.DefaultCC(cfg.Goos, cfg.Goarch))
    	}
    	ldflags = append(ldflags, "-buildmode="+ldBuildmode)
    	if root.buildID != "" {
    		ldflags = append(ldflags, "-buildid="+root.buildID)
    	}
    	ldflags = append(ldflags, forcedLdflags...)
    	ldflags = append(ldflags, root.Package.Internal.Ldflags...)
    	ldflags, err := setextld(ldflags, compiler)
    	if err != nil {
    		return err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testplugin/plugin_test.go

    	return m.Run()
    }
    
    func goCmd(t *testing.T, op string, args ...string) string {
    	if t != nil {
    		t.Helper()
    	}
    	var flags []string
    	if op != "tool" {
    		flags = []string{"-gcflags", gcflags}
    	}
    	return run(t, filepath.Join(goroot, "bin", "go"), append(append([]string{op}, flags...), args...)...)
    }
    
    // escape converts a string to something suitable for a shell command line.
    func escape(s string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/work/build.go

    		}
    		if load.BuildLdflags.Present() {
    			fmt.Println("go build: when using gccgo toolchain, please pass linker flags using -gccgoflags, not -ldflags")
    		}
    	case "gc":
    		if load.BuildGccgoflags.Present() {
    			fmt.Println("go build: when using gc toolchain, please pass compile flags using -gcflags, and linker flags using -ldflags")
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 17:22:59 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/inline/inlheur/funcprops_test.go

    	dfp := dentry.props
    	efp := eentry.props
    	dfn := dentry.fname
    
    	// Compare function flags.
    	if dfp.Flags != efp.Flags {
    		t.Errorf("testcase %q: Flags mismatch for %q: got %s, wanted %s",
    			tc, dfn, dfp.Flags.String(), efp.Flags.String())
    	}
    	// Compare returns
    	rgot := propBitsToString[ResultPropBits](dfp.ResultFlags)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 15K bytes
    - Viewed (0)
  8. hack/lib/golang.sh

      V=3 kube::log::info "Building binaries with GCFLAGS=${gogcflags} LDFLAGS=${goldflags}"
    
      local -a build_args
      if [[ "${#statics[@]}" != 0 ]]; then
        build_args=(
          -installsuffix=static
          ${goflags:+"${goflags[@]}"}
          -gcflags="${gogcflags}"
          -ldflags="${goldflags}"
          -tags="${gotags:-}"
        )
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 16:43:08 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  9. src/cmd/go/internal/load/test.go

    					Directives: p.Internal.Build.XTestDirectives,
    				},
    				Imports:    ximports,
    				RawImports: rawXTestImports,
    
    				Asmflags:       p.Internal.Asmflags,
    				Gcflags:        p.Internal.Gcflags,
    				Ldflags:        p.Internal.Ldflags,
    				Gccgoflags:     p.Internal.Gccgoflags,
    				Embed:          xtestEmbed,
    				OrigImportPath: p.Internal.OrigImportPath,
    				PGOProfile:     p.Internal.PGOProfile,
    			},
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/pgo_inl_test.go

    	gcflag := gcflag0 + ",pgohash=" + hash
    	out := buildPGOInliningTest(t, dir, gcflag)
    	if !bytes.Contains(out, []byte(hashMatch)) || !pgoDebugRE.Match(out) {
    		t.Errorf("output does not contain expected source line, out:\n%s", out)
    	}
    
    	// Check that a hash mismatch turns off PGO inlining.
    	hash = "v0" // 0 should not match srcPos
    	gcflag = gcflag0 + ",pgohash=" + hash
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top