- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 32 for CGO_CFLAGS (0.39 sec)
-
src/cmd/go/testdata/script/cgo_path_space.txt
rm $WORK/log.txt # TODO(#41400, #43078): when CC is set explicitly, it should be allowed to # contain spaces separating arguments, and it should be possible to quote # arguments with spaces (including the path), as in CGO_CFLAGS and other # variables. For now, this doesn't work. [!GOOS:windows] env CC=$WORK/'program files'/gcc [GOOS:windows] env CC=$WORK\'program files'\gcc.bat ! go build -x ! exists $WORK/log.txt -- go.mod -- module m
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 1.6K bytes - Viewed (0) -
src/cmd/link/dwarf_test.go
if buildmode != "" { cmd.Args = append(cmd.Args, "-buildmode", buildmode) } cmd.Args = append(cmd.Args, dir) cmd.Env = append(os.Environ(), env...) cmd.Env = append(cmd.Env, "CGO_CFLAGS=") // ensure CGO_CFLAGS does not contain any flags. Issue #35459 cmd.Env = append(cmd.Env, "LINK_TEST_TOOLEXEC=1") out, err := cmd.CombinedOutput() if err != nil { t.Fatalf("go build -o %v %v: %v\n%s", exe, dir, err, out)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 03 17:05:14 UTC 2023 - 6.9K 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/debug/mod.go
// // - -buildmode: the buildmode flag used (typically "exe") // - -compiler: the compiler toolchain flag used (typically "gc") // - CGO_ENABLED: the effective CGO_ENABLED environment variable // - CGO_CFLAGS: the effective CGO_CFLAGS environment variable // - CGO_CPPFLAGS: the effective CGO_CPPFLAGS environment variable // - CGO_CXXFLAGS: the effective CGO_CXXFLAGS environment variable
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 15:06:51 UTC 2023 - 7.6K bytes - Viewed (0) -
src/runtime/cgo/libcgo.h
*/ struct cgoTracebackArg { uintptr_t Context; uintptr_t SigContext; uintptr_t* Buf; uintptr_t Max; }; /* * TSAN support. This is only useful when building with * CGO_CFLAGS="-fsanitize=thread" CGO_LDFLAGS="-fsanitize=thread" go install */ #undef CGO_TSAN #if defined(__has_feature) # if __has_feature(thread_sanitizer) # define CGO_TSAN # endif #elif defined(__SANITIZE_THREAD__)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 13 20:50:04 UTC 2024 - 3.5K 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_bad_directives.txt
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 -- module x go 1.16 -- x_gc.go.txt -- package x //go:cgo_ldflag "-fplugin=foo.so" import "C"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 2.8K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/errors_test.go
t.Run(cflags, func(t *testing.T) { testenv.MustHaveGoBuild(t) testenv.MustHaveCGO(t) t.Parallel() cmd := exec.Command("go", "build", path("issue14669.go")) cmd.Env = append(os.Environ(), "CGO_CFLAGS="+cflags) out, err := cmd.CombinedOutput() if err != nil { t.Errorf("%#q: %v:\n%s", strings.Join(cmd.Args, " "), err, out) } }) } } func TestMallocCrashesOnNil(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 4K bytes - Viewed (0) -
src/cmd/cgo/internal/swig/swig_test.go
if strings.Contains(testenv.Builder(), "clang") { extraLDFlags += " -fuse-ld=lld" } const cflags = "-flto -Wno-lto-type-mismatch -Wno-unknown-warning-option" cmd.Env = append(cmd.Environ(), "CGO_CFLAGS="+cflags, "CGO_CXXFLAGS="+cflags, "CGO_LDFLAGS="+cflags+extraLDFlags) } out, err := cmd.CombinedOutput() if string(out) != "OK\n" { t.Errorf("%s", string(out)) } if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 12:38:14 UTC 2024 - 4K bytes - Viewed (0) -
src/cmd/go/internal/help/helpdoc.go
from appearing in #cgo CFLAGS source code directives. Does not apply to the CGO_CFLAGS environment variable. CGO_CPPFLAGS, CGO_CPPFLAGS_ALLOW, CGO_CPPFLAGS_DISALLOW Like CGO_CFLAGS, CGO_CFLAGS_ALLOW, and CGO_CFLAGS_DISALLOW, but for the C preprocessor. CGO_CXXFLAGS, CGO_CXXFLAGS_ALLOW, CGO_CXXFLAGS_DISALLOW Like CGO_CFLAGS, CGO_CFLAGS_ALLOW, and CGO_CFLAGS_DISALLOW, but for the C++ compiler.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 36.3K bytes - Viewed (0)