Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 291 for lchflags (0.16 sec)

  1. src/syscall/syscall_netbsd.go

    //sys	Chdir(path string) (err error)
    //sys	Chflags(path string, flags int) (err error)
    //sys	Chmod(path string, mode uint32) (err error)
    //sys	Chown(path string, uid int, gid int) (err error)
    //sys	Chroot(path string) (err error)
    //sys	Close(fd int) (err error)
    //sys	Dup(fd int) (nfd int, err error)
    //sys	Dup2(from int, to int) (err error)
    //sys	Fchdir(fd int) (err error)
    //sys	Fchflags(fd int, flags int) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  2. 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)
  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/gccgo.go

    		wholeArchive = nil
    		noWholeArchive = nil
    	}
    	ldflags = append(ldflags, wholeArchive...)
    	ldflags = append(ldflags, afiles...)
    	ldflags = append(ldflags, noWholeArchive...)
    
    	ldflags = append(ldflags, cgoldflags...)
    	ldflags = append(ldflags, envList("CGO_LDFLAGS", "")...)
    	if cfg.Goos != "aix" {
    		ldflags = str.StringList("-Wl,-(", ldflags, "-Wl,-)")
    	}
    
    	if root.buildID != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 02 22:18:34 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/build_cd_gopath_different.txt

    [compiler:gccgo] skip 'gccgo does not support -ldflags -X'
    env GO111MODULE=off
    go build run_go.go
    
    # Apply identity function to GOPATH
    exec ./run_go$GOEXE $GOPATH/src/my.pkg/main $GOPATH IDENTITY build -o $WORK/tmp/a.exe -ldflags -X=my.pkg.Text=linkXworked
    exec $WORK/tmp/a.exe
    stderr 'linkXworked'
    rm $WORK/tmp/a.exe
    
    [!GOOS:windows] stop 'rest of the tests only apply to Windows'
    
    # Replace '\' with '/' in GOPATH
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/cgo_undef.txt

    # such that the .syso file only works when linked against the .a file.
    # Package a has #cgo LDFLAGS to make this happen.
    #
    # Package c imports package a, and uses cgo itself.
    # The generation of the _cgo_import.go for package c will fail,
    # because it won't know that it has to link against a/libb.a
    # (because we don't gather the #cgo LDFLAGS from all transitively
    # imported packages).
    #
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 22 20:56:07 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/cgo_bad_directives.txt

    # Reject #cgo CFLAGS: -D @foo
    cp y_cflags_dash_d_space_at_foo.txt y.go
    ! go build x
    stderr 'invalid flag in #cgo CFLAGS: -D @foo'
    
    # Reject #cgo CFLAGS -D@foo
    cp y_cflags_dash_d_at_foo.txt y.go
    ! go build x
    stderr 'invalid flag in #cgo CFLAGS: -D@foo'
    
    # Check for CFLAGS in commands
    env CGO_CFLAGS=-D@foo
    cp y_no_cflags.txt y.go
    go build -n x
    stderr '-D@foo'
    
    -- go.mod --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/build_gcflags_order.txt

    # Tests golang.org/issue/47682
    # Flags specified with -gcflags should appear after other flags generated by cmd/go.
    
    cd m
    go build -n -gcflags=-lang=go1.17
    stderr ' -lang=go1.16.* -lang=go1.17'
    ! go build -gcflags='-c 0'
    stderr 'compile: -c must be at least 1, got 0'
    
    -- m/go.mod --
    module example.com
    
    go 1.16
    
    -- m/main.go --
    package main
    
    func main() {
        var s = []int{1, 2, 3}
        var pa = (*[2]int)(s[1:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 07 22:22:37 UTC 2023
    - 435 bytes
    - Viewed (0)
  9. src/syscall/syscall_dragonfly.go

    //sys	Chdir(path string) (err error)
    //sys	Chflags(path string, flags int) (err error)
    //sys	Chmod(path string, mode uint32) (err error)
    //sys	Chown(path string, uid int, gid int) (err error)
    //sys	Chroot(path string) (err error)
    //sys	Close(fd int) (err error)
    //sys	Dup(fd int) (nfd int, err error)
    //sys	Dup2(from int, to int) (err error)
    //sys	Fchdir(fd int) (err error)
    //sys	Fchflags(fd int, flags int) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/gccgo_link_ldflags.txt

    # Test that #cgo LDFLAGS are properly quoted.
    # The #cgo LDFLAGS below should pass a string with spaces to -L,
    # as though searching a directory with a space in its name.
    # It should not pass --nosuchoption to the external linker.
    
    [!cgo] skip
    
    go build
    
    [!exec:gccgo] skip
    
    # TODO: remove once gccgo on builder is updated
    [GOOS:aix] [GOARCH:ppc64] skip
    
    go build -compiler gccgo
    
    -- go.mod --
    module m
    -- cgo.go --
    package main
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 06:52:47 UTC 2023
    - 499 bytes
    - Viewed (0)
Back to top