- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 411 for Ldflags (0.14 sec)
-
src/cmd/cgo/internal/test/issue8756.go
// Copyright 2016 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. package cgotest /* #cgo !darwin LDFLAGS: -lm #include <math.h> */ import "C" import ( "testing" "cmd/cgo/internal/test/issue8756" ) func test8756(t *testing.T) { issue8756.Pow() C.pow(1, 2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:34:11 UTC 2023 - 359 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue24161res/restype.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 issue24161res /* #cgo LDFLAGS: -framework CoreFoundation #include <CoreFoundation/CoreFoundation.h> */ import "C" import ( "reflect" "testing" ) func Test(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 486 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" ) func main() {
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/testerrors/testdata/err1.go
// Copyright 2013 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. package main /* #cgo LDFLAGS: -L/nonexist void test() { xxx; // ERROR HERE } // Issue 8442. Cgo output unhelpful error messages for // invalid C preambles. void issue8442foo(UNDEF*); // ERROR HERE */ import "C" func main() { C.test()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 404 bytes - Viewed (0) -
src/cmd/go/testdata/script/version.txt
go version empty.dll stderr 'could not read Go build info' # Neither of the two flags above should be an issue via GOFLAGS. env GOFLAGS='-m -v' go version stdout '^go version' env GOFLAGS= env GO111MODULE=on # Check that very basic version lookup succeeds. go build empty.go go version empty$GOEXE [cgo] go build -ldflags=-linkmode=external empty.go [cgo] go version empty$GOEXE
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 05 14:52:04 UTC 2024 - 2.3K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue24161e1/main.go
// 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/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) syscall.Kill(syscall.Getpid(), syscall.SIGUSR1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 798 bytes - Viewed (0) -
src/net/cgo_unix_cgo_res.go
/* #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <unistd.h> #include <string.h> #include <arpa/nameser.h> #include <resolv.h> #cgo !android,!openbsd LDFLAGS: -lresolv */ import "C" type _C_struct___res_state = struct{} func _C_res_ninit(state *_C_struct___res_state) error { return nil } func _C_res_nclose(state *_C_struct___res_state) { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 07 23:50:56 UTC 2024 - 892 bytes - Viewed (0) -
src/net/cgo_solaris.go
// Copyright 2015 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 cgo && !netgo package net /* #cgo LDFLAGS: -lsocket -lnsl -lsendfile #include <netdb.h> */ import "C"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 343 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue24161arg/def.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 issue24161arg /* #cgo LDFLAGS: -framework CoreFoundation #include <CoreFoundation/CoreFoundation.h> */ import "C" func test24161array() C.CFArrayRef { return C.CFArrayCreate(0, nil, 0, nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 382 bytes - Viewed (0)