- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 285 for ldflag (0.24 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/link/internal/ld/ld_test.go
hasHEVA := (dc & pe.IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA) != 0 if useASLR && !hasHEVA { t.Error("IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA flag is not set") } else if !useASLR && hasHEVA { t.Error("IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA flag should not be set") } default: t.Fatalf("unexpected optional header type of %T", f.OptionalHeader) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 05:45:53 UTC 2023 - 10.3K 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() { runtime.LockOSThread()
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/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/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
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 # Skip the remaining builds if we are running in short mode. [short] skip # Check that 'go version' and 'go version -m' work on a binary built in module mode.
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> #if TARGET_OS_IPHONE == 0 && __MAC_OS_X_VERSION_MAX_ALLOWED < 101200
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/go/internal/base/flag.go
// AddBuildFlagsNX adds the -n and -x build flags to the flag set. func AddBuildFlagsNX(flags *flag.FlagSet) { flags.BoolVar(&cfg.BuildN, "n", false, "") flags.BoolVar(&cfg.BuildX, "x", false, "") } // AddChdirFlag adds the -C flag to the flag set. func AddChdirFlag(flags *flag.FlagSet) { // The usage message is never printed, but it's used in chdir_test.go // to identify that the -C flag is from AddChdirFlag.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 19:23:42 UTC 2023 - 2.2K 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) <-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/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)