Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for linkXworked (0.09 sec)

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

    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
    exec ./run_go$GOEXE $GOPATH/src/my.pkg/main $GOPATH REPLACE_SLASH build -o $WORK/tmp/a.exe -ldflags -X=my.pkg.Text=linkXworked
    exec $WORK/tmp/a.exe
    stderr 'linkXworked'
    rm $WORK/tmp/a.exe
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/build_link_x_import_path_escape.txt

    [compiler:gccgo] skip 'gccgo does not support -ldflags -X'
    
    go build -o linkx$GOEXE -ldflags -X=my.pkg.Text=linkXworked my.pkg/main
    exec ./linkx$GOEXE
    stderr '^linkXworked$'
    
    -- go.mod --
    module my.pkg
    
    go 1.16
    -- main/main.go --
    package main
    
    import "my.pkg"
    
    func main() {
    	println(pkg.Text)
    }
    -- pkg.go --
    package pkg
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 341 bytes
    - Viewed (0)
Back to top