- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 402 for CFlags (0.25 sec)
-
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) -
src/cmd/cgo/internal/swig/swig_test.go
extraLDFlags := "" 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)) }
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/testdata/script/cgo_trimpath_macro.txt
package main // #cgo CFLAGS: -I../c // #include "stdio.h" // void printfile(); import "C" func main() { C.printfile() C.fflush(C.stdout) } -- vendor/v.com/main/foo.c -- #include "bar.h" -- vendor/v.com/c/bar.h -- #include "stdio.h" void printfile() { printf("%s\n", __FILE__); } -- main/main.go -- package main // #cgo CFLAGS: -I../c // #include "stdio.h"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 22 19:56:37 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/errors_test.go
} func TestToleratesOptimizationFlag(t *testing.T) { for _, cflags := range []string{ "", "-O", } { cflags := cflags 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 {
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/go/testdata/script/darwin_lto_library_ldflag.txt
[!GOOS:darwin] skip [!cgo] skip ! go build stderr 'invalid flag in #cgo LDFLAGS: -lto_library' -- go.mod -- module ldflag -- main.go -- package main // #cgo CFLAGS: -flto // #cgo LDFLAGS: -lto_library bad.dylib import "C"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 15:41:16 UTC 2024 - 241 bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan.go
package main // This program produced false race reports when run under the C/C++ // ThreadSanitizer, as it did not understand the synchronization in // the Go code. /* #cgo CFLAGS: -fsanitize=thread #cgo LDFLAGS: -fsanitize=thread int val; int getVal() { return val; } void setVal(int i) { val = i; } */ import "C" import ( "runtime" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 700 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue24161e1/main.go
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin package issue24161e1 /* #cgo CFLAGS: -x objective-c #cgo LDFLAGS: -framework CoreFoundation -framework Security #include <TargetConditionals.h> #include <CoreFoundation/CoreFoundation.h> #include <Security/Security.h>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 1K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan4.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main // Check that calls to C.malloc/C.free do not trigger TSAN false // positive reports. // #cgo CFLAGS: -fsanitize=thread // #cgo LDFLAGS: -fsanitize=thread // #include <stdlib.h> import "C" import ( "runtime" "sync" ) func main() { var wg sync.WaitGroup for i := 0; i < 10; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 634 bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan10.go
// run for an arbitrarily long time without triggering the libc interceptors. // See https://golang.org/issue/18717. import ( "os" "os/signal" "syscall" ) /* #cgo CFLAGS: -g -fsanitize=thread #cgo LDFLAGS: -g -fsanitize=thread */ import "C" func main() { c := make(chan os.Signal, 1) signal.Notify(c, syscall.SIGUSR1) defer signal.Stop(c)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 798 bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan3.go
// license that can be found in the LICENSE file. package main // The stubs for the C functions read and write the same slot on the // g0 stack when copying arguments in and out. /* #cgo CFLAGS: -fsanitize=thread #cgo LDFLAGS: -fsanitize=thread int Func1() { return 0; } void Func2(int x) { (void)x; } */ import "C" func main() { const N = 10000 done := make(chan bool, N)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 662 bytes - Viewed (0)