Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 98 for gcflags (0.12 sec)

  1. src/cmd/asm/main.go

    	architecture := arch.Set(GOARCH, *flags.Shared || *flags.Dynlink)
    	if architecture == nil {
    		log.Fatalf("unrecognized architecture %s", GOARCH)
    	}
    	ctxt := obj.Linknew(architecture.LinkArch)
    	ctxt.Debugasm = flags.PrintOut
    	ctxt.Debugvlog = flags.DebugV
    	ctxt.Flag_dynlink = *flags.Dynlink
    	ctxt.Flag_linkshared = *flags.Linkshared
    	ctxt.Flag_shared = *flags.Shared || *flags.Dynlink
    	ctxt.Flag_maymorestack = flags.DebugFlags.MayMoreStack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. src/cmd/dist/test.go

    	}
    	if opts.cpu != "" {
    		run = append(run, "-cpu="+opts.cpu)
    	}
    	if t.json {
    		run = append(run, "-json")
    	}
    
    	if opts.gcflags != "" {
    		build = append(build, "-gcflags=all="+opts.gcflags)
    	}
    	if opts.ldflags != "" {
    		build = append(build, "-ldflags="+opts.ldflags)
    	}
    	if opts.buildmode != "" {
    		build = append(build, "-buildmode="+opts.buildmode)
    	}
    
    	pkgs = opts.packages()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/runtime/runtime-lldb_test.go

    		t.Fatalf("failed to create mod file: %v", err)
    	}
    
    	// As of 2018-07-17, lldb doesn't support compressed DWARF, so
    	// disable it for this test.
    	cmd := exec.Command(testenv.GoToolPath(t), "build", "-gcflags=all=-N -l", "-ldflags=-compressdwarf=false", "-o", "a.exe")
    	cmd.Dir = dir
    	cmd.Env = append(os.Environ(), "GOPATH=") // issue 31100
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Fatalf("building source %v\n%s", err, out)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/x86/seh.go

    			ctxt.Diag("missing runtime.sehtramp\n")
    			return
    		}
    		flags = UNW_FLAG_EHANDLER
    	}
    
    	// Fow now we only support operations which are encoded
    	// using a single 2-byte node, so the number of nodes
    	// is the number of operations.
    	nodes := uint8(2)
    	buf := newsehbuf(ctxt, nodes)
    	buf.write8(flags | 1)            // Flags + version
    	buf.write8(uint8(movbp.Link.Pc)) // Size of prolog
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/pgo_devirtualize_test.go

    	}
    
    	// Build the test with the profile.
    	pprof := filepath.Join(dir, pgoProfileName)
    	gcflag := fmt.Sprintf("-gcflags=-m=2 -pgoprofile=%s -d=pgodebug=3", pprof)
    	out := filepath.Join(dir, "test.exe")
    	cmd = testenv.CleanCmdEnv(testenv.Command(t, testenv.GoToolPath(t), "test", "-o", out, gcflag, "."))
    	cmd.Dir = dir
    
    	pr, pw, err := os.Pipe()
    	if err != nil {
    		t.Fatalf("error creating pipe: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 21:30:35 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/cmd/cgo/internal/testsanitizers/cc_test.go

    			c.cFlags = append(c.cFlags, "-fPIC")
    			c.ldFlags = append(c.ldFlags, "-fPIC", "-static-libtsan")
    		}
    
    	case "address":
    		c.goFlags = append(c.goFlags, "-asan")
    		// Set the debug mode to print the C stack trace.
    		c.cFlags = append(c.cFlags, "-g")
    
    	case "fuzzer":
    		c.goFlags = append(c.goFlags, "-tags=libfuzzer", "-gcflags=-d=libfuzzer")
    
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 20:00:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top