Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 244 for ldflag (0.14 sec)

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

    [!GOOS:darwin] skip
    [!cgo] skip
    
    ! go build
    stderr 'invalid flag in #cgo LDFLAGS: -lto_library'
    
    -- go.mod --
    module ldflag
    
    -- main.go --
    package main
    
    // #cgo CFLAGS: -flto
    // #cgo LDFLAGS: -lto_library bad.dylib
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:41:16 UTC 2024
    - 241 bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/go.go

    					nerrors++
    					return
    				}
    
    				interpreter = f[1]
    			}
    			continue
    
    		case "cgo_ldflag":
    			if len(f) != 2 {
    				break
    			}
    			ldflag = append(ldflag, f[1])
    			continue
    		}
    
    		fmt.Fprintf(os.Stderr, "%s: %s: invalid cgo directive: %q\n", os.Args[0], file, f)
    		nerrors++
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/lib.go

    }
    
    var (
    	dynlib          []string
    	ldflag          []string
    	havedynamic     int
    	Funcalign       int
    	iscgo           bool
    	elfglobalsymndx int
    	interpreter     string
    
    	debug_s bool // backup old value of debug['s']
    	HEADR   int32
    
    	nerrors  int
    	liveness int64 // size of liveness data (funcdata), printed if -v
    
    	// See -strictdups command line flag.
    	checkStrictDups   int // 0=off 1=warning 2=error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/cmdflag/flag.go

    // license that can be found in the LICENSE file.
    
    // Package cmdflag handles flag processing common to several go tools.
    package cmdflag
    
    import (
    	"errors"
    	"flag"
    	"fmt"
    	"strings"
    )
    
    // The flag handling part of go commands such as test is large and distracting.
    // We can't use the standard flag package because some of the flags from
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 06 02:38:04 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  5. src/cmd/go/internal/base/goflags.go

    type boolFlag interface {
    	flag.Value
    	IsBoolFlag() bool
    }
    
    // SetFromGOFLAGS sets the flags in the given flag set using settings in $GOFLAGS.
    func SetFromGOFLAGS(flags *flag.FlagSet) {
    	InitGOFLAGS()
    
    	// This loop is similar to flag.Parse except that it ignores
    	// unknown flags found in goflags, so that setting, say, GOFLAGS=-ldflags=-w
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testerrors/badsym_test.go

    			// This is the error from cgo.
    			continue
    		}
    
    		// We passed -ldflags=-v to see the external linker invocation,
    		// which should not include -badflag.
    		if bytes.Contains(line, []byte("-badflag")) {
    			t.Error("output should not mention -badflag")
    		}
    
    		// Also check for compiler errors, just in case.
    		// GCC says "unrecognized command line option".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. pkg/log/klog.go

    	return gf.Value.String() != "0"
    }
    
    var (
    	klogFlagSet     = &goflag.FlagSet{}
    	klogFlagSetOnce = sync.Once{}
    )
    
    // KlogVerboseFlag returns verbose flag from the klog library.
    // After parsing it contains the parsed verbosity value.
    func klogVerboseFlag() *goflag.Flag {
    	klogFlagSetOnce.Do(func() {
    		klog.InitFlags(klogFlagSet)
    	})
    	// --v= flag of klog.
    	return klogFlagSet.Lookup("v")
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. cmd/kubemark/app/hollow_node.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package app
    
    import (
    	"context"
    	goflag "flag"
    	"fmt"
    	"time"
    
    	"github.com/spf13/cobra"
    	"github.com/spf13/pflag"
    	"go.opentelemetry.io/otel/trace/noop"
    	internalapi "k8s.io/cri-api/pkg/apis"
    	"k8s.io/klog/v2"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/resource"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testso/testdata/so/cgoso.go

    /*
    // intentionally write the same LDFLAGS differently
    // to test correct handling of LDFLAGS.
    #cgo linux LDFLAGS: -L. -lcgosotest
    #cgo dragonfly LDFLAGS: -L. -l cgosotest
    #cgo freebsd LDFLAGS: -L. -l cgosotest
    #cgo openbsd LDFLAGS: -L. -l cgosotest
    #cgo solaris LDFLAGS: -L. -lcgosotest
    #cgo netbsd LDFLAGS: -L. libcgosotest.so
    #cgo darwin LDFLAGS: -L. libcgosotest.dylib
    #cgo windows LDFLAGS: -L. libcgosotest.a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:41 UTC 2023
    - 761 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/gcflags_patterns.txt

    # -ldflags applies to link of command
    go build -a -n -ldflags=-X=math.pi=3 my/cmd/prog
    stderr 'link.* -X=math.pi=3'
    
    # -ldflags applies to link of command even with strange directory name
    go build -a -n -ldflags=-X=math.pi=3 my/cmd/prog/
    stderr 'link.* -X=math.pi=3'
    
    # -ldflags applies to current directory
    cd my/cmd/prog
    go build -a -n -ldflags=-X=math.pi=3
    stderr 'link.* -X=math.pi=3'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 21 14:58:44 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top