Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 92 for cgoEnabled (0.2 sec)

  1. pkg/test/fakes/imageregistry/Makefile

    TAG := 1.3
    
    all: build_and_push clean
    
    $(MD_PATH)/$(BIN_NAME)-amd64: $(MD_PATH)/main.go
    	cd $(MD_PATH) && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o $(BIN_NAME)-amd64 -a -tags netgo -ldflags '-w -extldflags "-static"' main.go
    
    $(MD_PATH)/$(BIN_NAME)-arm64: $(MD_PATH)/main.go
    	cd $(MD_PATH) && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o $(BIN_NAME)-arm64 -a -tags netgo -ldflags '-w -extldflags "-static"' main.go
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 17 16:29:18 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/version_build_settings.txt

    [race] stdout '^\tbuild\t-race=true$'
    
    # CGO flags are separate settings.
    # CGO_ENABLED is always present.
    # Other flags are added if CGO_ENABLED is true.
    env CGO_ENABLED=0
    go build
    go version -m m$GOEXE
    stdout '^\tbuild\tCGO_ENABLED=0$'
    ! stdout CGO_CPPFLAGS|CGO_CFLAGS|CGO_CXXFLAGS|CGO_LDFLAGS
    
    [cgo] env CGO_ENABLED=1
    [cgo] env CGO_CPPFLAGS=-DFROM_CPPFLAGS=1
    [cgo] env CGO_CFLAGS=-DFROM_CFLAGS=1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/install_goroot_targets.txt

    go list -f '{{.Target}}' builtin unsafe
    ! stdout .
    go install builtin unsafe  # Should succeed as no-ops.
    
    # With CGO_ENABLED=0, packages that would have
    # an install target with cgo on no longer do.
    env GODEBUG=
    env CGO_ENABLED=0
    go list -f '{{.Target}}' runtime/cgo
    ! stdout .
    go list -export -f '{{.Export}}' runtime/cgo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 22:43:41 UTC 2022
    - 747 bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/exec.go

    		a = append(a, "-fPIC")
    	}
    	a = append(a, b.gccArchArgs()...)
    	// gcc-4.5 and beyond require explicit "-pthread" flag
    	// for multithreading with pthread library.
    	if cfg.BuildContext.CgoEnabled {
    		switch cfg.Goos {
    		case "windows":
    			a = append(a, "-mthreads")
    		default:
    			a = append(a, "-pthread")
    		}
    	}
    
    	if cfg.Goos == "aix" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_android_issue62123.txt

    env GOOS=android GOARCH=amd64 CGO_ENABLED=0
    
    ! go build -o $devnull cmd/buildid
    stderr 'android/amd64 requires external \(cgo\) linking, but cgo is not enabled'
    ! stderr 'cannot find runtime/cgo'
    
    ! go test -c -o $devnull os
    stderr '# os\nandroid/amd64 requires external \(cgo\) linking, but cgo is not enabled'
    ! stderr 'cannot find runtime/cgo'
    
    env GOOS=ios GOARCH=arm64 CGO_ENABLED=0
    
    ! go build -o $devnull cmd/buildid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 21:55:28 UTC 2023
    - 683 bytes
    - Viewed (0)
  6. pkg/test/fakes/gce_metadata_server/Makefile

    # This should also be updated in dependent components
    TAG := 1.2
    
    all: build_and_push clean
    
    build_and_push:
    	cd $(MD_PATH) && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main-amd64 -a -tags netgo -ldflags '-w -extldflags "-static"' main.go
    	cd $(MD_PATH) && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o main-arm64 -a -tags netgo -ldflags '-w -extldflags "-static"' main.go
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 22:47:52 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. .github/workflows/go-lint.yml

            with:
              go-version: ${{ matrix.go-version }}
              check-latest: true
          - name: Build on ${{ matrix.os }}
            if: matrix.os == 'Windows'
            env:
              CGO_ENABLED: 0
              GO111MODULE: on
            run: |
              Set-MpPreference -DisableRealtimeMonitoring $true
              netsh int ipv4 set dynamicport tcp start=60000 num=61000
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 22:29:33 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/install_cgo_excluded.txt

    env CGO_ENABLED=0
    
    ! go install cgotest
    stderr 'build constraints exclude all Go files'
    
    -- go.mod --
    module cgotest
    
    go 1.16
    -- m.go --
    package cgotest
    
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 178 bytes
    - Viewed (0)
  9. buildscripts/race.sh

    #!/usr/bin/env bash
    
    set -e
    
    export GORACE="history_size=7"
    export MINIO_API_REQUESTS_MAX=10000
    
    for d in $(go list ./...); do
    	CGO_ENABLED=1 go test -v -race --timeout 100m "$d"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 26 05:07:25 UTC 2023
    - 184 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/list_constraints.txt

    env GOOS=linux
    env GOARCH=amd64
    env CGO_ENABLED=1
    go list -f '{{range .GoFiles}}{{.}} {{end}}'
    stdout '^cgotag.go empty.go suffix_linux.go tag.go $'
    go list -f '{{range .CgoFiles}}{{.}} {{end}}'
    stdout '^cgoimport.go $'
    go list -f '{{range .Imports}}{{.}} {{end}}'
    stdout '^C cgoimport cgotag suffix tag $'
    
    # Disabling cgo should exclude cgo files and their imports.
    env CGO_ENABLED=0
    go list -f '{{range .GoFiles}}{{.}} {{end}}'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 04 23:54:27 UTC 2019
    - 1.7K bytes
    - Viewed (0)
Back to top