- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for _cgo_flags (0.14 sec)
-
src/cmd/link/cgo_test.go
default: t.Fatalf("bad case %d", test) } cmd := testenv.Command(t, testenv.GoToolPath(t), "build") cmd.Dir = dir cgoCflags += " -flto" cmd.Env = append(cmd.Environ(), "CGO_CFLAGS="+cgoCflags) t.Logf("CGO_CFLAGS=%q %v", cgoCflags, cmd) out, err := cmd.CombinedOutput() t.Logf("%s", out) if err != nil { t.Logf("go build failed: %v", err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 09 22:13:02 UTC 2023 - 2.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/version_build_settings.txt
# 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 [cgo] env CGO_CXXFLAGS=-DFROM_CXXFLAGS=1 [cgo] env CGO_LDFLAGS=-L/extra/dir/does/not/exist
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 2.7K bytes - Viewed (0) -
src/internal/cfg/cfg.go
// of the Go command. const KnownEnv = ` AR CC CGO_CFLAGS CGO_CFLAGS_ALLOW CGO_CFLAGS_DISALLOW CGO_CPPFLAGS CGO_CPPFLAGS_ALLOW CGO_CPPFLAGS_DISALLOW CGO_CXXFLAGS CGO_CXXFLAGS_ALLOW CGO_CXXFLAGS_DISALLOW CGO_ENABLED CGO_FFLAGS CGO_FFLAGS_ALLOW CGO_FFLAGS_DISALLOW CGO_LDFLAGS CGO_LDFLAGS_ALLOW CGO_LDFLAGS_DISALLOW CXX FC
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 01:33:19 UTC 2024 - 1.2K bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/00-bug.yml
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 04 23:31:17 UTC 2024 - 3.3K bytes - Viewed (0) -
src/runtime/signal_windows_test.go
if err != nil { t.Fatalf("%v: %v\n%s", cmd, err, cmd.Stderr) } out := string(bytes.TrimSpace(line)) t.Logf("%v: %q", cmd, out) return out } cc := goEnv("CC") cgoCflags := goEnv("CGO_CFLAGS") t.Parallel() tmpdir := t.TempDir() dllfile := filepath.Join(tmpdir, "test.dll") exefile := filepath.Join(tmpdir, "gotest.exe") // build go dll
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 08:26:52 UTC 2023 - 9K bytes - Viewed (0) -
src/cmd/go/testdata/script/cgo_suspect_flag_force_external.txt
env CGO_CFLAGS=-fplugin go build -x -n -o dummy.exe ./usesInternalCgo stderr preferlinkext env CGO_CFLAGS=-fprofile-instr-generate go build -x -n -o dummy.exe ./usesInternalCgo stderr preferlinkext # The -fdebug-prefix-map=path is permitted for internal linking. env CGO_CFLAGS=-fdebug-prefix-map=/some/sandbox/execroot/workspace=/tmp/new go build -x -n -o dummy.exe ./usesInternalCgo ! stderr preferlinkext
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 25 18:16:01 UTC 2023 - 6.3K bytes - Viewed (0) -
src/cmd/go/testdata/script/env_changed.txt
env GOSUMDB=nodefault env GOPROXY=nodefault env GO111MODULE=auto env CGO_CFLAGS=nodefault env CGO_CPPFLAGS=nodefault go env -changed # linux output like GOTOOLCHAIN='local' # windows output like GOTOOLCHAIN=local stdout 'GOTOOLCHAIN=''?local''?' stdout 'GOSUMDB=''?nodefault''?' stdout 'GOPROXY=''?nodefault''?' stdout 'GO111MODULE=''?auto''?' stdout 'CGO_CFLAGS=''?nodefault''?' stdout 'CGO_CPPFLAGS=''?nodefault''?'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 18:49:03 UTC 2024 - 1.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/cgo_stale.txt
# golang.org/issue/46347: a stale runtime/cgo should only force a single rebuild [!cgo] skip [short] skip # If we set a unique CGO_CFLAGS, the installed copy of runtime/cgo # should be reported as stale. env CGO_CFLAGS=-DTestScript_cgo_stale=true stale runtime/cgo # If we then build a package that uses cgo, runtime/cgo should be rebuilt and # cached with the new flag, but not installed to GOROOT.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 21 22:43:41 UTC 2022 - 888 bytes - Viewed (0) -
src/cmd/go/testdata/script/cgo_stale_precompiled.txt
# Explicitly rebuild it to ensure that it is cached. # (See https://go.dev/issue/50892.) # # If running in non-short mode, explicitly vary CGO_CFLAGS # as a control case (to ensure that our regexps do catch rebuilds). [!short] env GOCACHE=$WORK/cache [!short] env CGO_CFLAGS=-DTestScript_cgo_stale_precompiled=true go build -x runtime/cgo [!short] stderr '[/\\]cgo'$GOEXE'["]? .* -importpath runtime/cgo'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 1.2K bytes - Viewed (0) -
src/go/internal/srcimporter/srcimporter.go
} args = append(args, strings.Fields(string(out))...) } args = append(args, "-I", tmpdir) args = append(args, strings.Fields(os.Getenv("CGO_CFLAGS"))...) args = append(args, bp.CgoCFLAGS...) args = append(args, bp.CgoFiles...) cmd := exec.Command(args[0], args[1:]...) cmd.Dir = bp.Dir if err := cmd.Run(); err != nil { return nil, fmt.Errorf("go tool cgo: %w", err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 18:54:32 UTC 2022 - 8.2K bytes - Viewed (0)