- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for CPPFLAGS (0.44 sec)
-
src/cmd/cgo/internal/testsanitizers/testdata/msan2_cmsan.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. package main /* #cgo LDFLAGS: -fsanitize=memory #cgo CPPFLAGS: -fsanitize=memory #include <string.h> #include <stdint.h> #include <stdlib.h> void f(int32_t *p, int n) { int32_t * volatile q = (int32_t *)malloc(sizeof(int32_t) * n); memcpy(p, q, n * sizeof(*p));
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 710 bytes - Viewed (0) -
src/runtime/cgo/cgo.go
#cgo solaris LDFLAGS: -lsocket // Use -fno-stack-protector to avoid problems locating the // proper support functions. See issues #52919, #54313, #58385. #cgo CFLAGS: -Wall -Werror -fno-stack-protector #cgo solaris CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS */ import "C" import "runtime/internal/sys" // Incomplete is used specifically for the semantics of incomplete C types. type Incomplete struct { _ sys.NotInHeap
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 10 14:29:46 UTC 2023 - 1.1K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/msan6.go
// stack marked as uninitialized, potentially causing a later error // when the stack is used for something else. Issue 26209. /* #cgo LDFLAGS: -fsanitize=memory #cgo CPPFLAGS: -fsanitize=memory #include <stdint.h> #include <stdlib.h> #include <string.h> typedef struct { uintptr_t a[20]; } S; S f() { S *p; p = (S *)(malloc(sizeof(S))); p->a[0] = 0;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.4K bytes - Viewed (0) -
src/cmd/go/internal/modindex/build.go
} args[i] = arg } switch verb { case "CFLAGS", "CPPFLAGS", "CXXFLAGS", "FFLAGS", "LDFLAGS": // Change relative paths to absolute. ctxt.makePathsAbsolute(args, di.Dir) } switch verb { case "CFLAGS": di.CgoCFLAGS = append(di.CgoCFLAGS, args...) case "CPPFLAGS": di.CgoCPPFLAGS = append(di.CgoCPPFLAGS, args...) case "CXXFLAGS":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 17:39:23 UTC 2023 - 26.8K bytes - Viewed (0) -
src/cmd/cgo/doc.go
are not subject to the security limitations described above. All the cgo CPPFLAGS and CFLAGS directives in a package are concatenated and used to compile C files in that package. All the CPPFLAGS and CXXFLAGS directives in a package are concatenated and used to compile C++ files in that package. All the CPPFLAGS and FFLAGS directives in a package are concatenated
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 17:12:16 UTC 2024 - 42.2K bytes - Viewed (0) -
src/cmd/go/internal/envcmd/env.go
// but are costly to evaluate. func ExtraEnvVarsCostly() []cfg.EnvVar { b := work.NewBuilder("") defer func() { if err := b.Close(); err != nil { base.Fatal(err) } }() cppflags, cflags, cxxflags, fflags, ldflags, err := b.CFlags(&load.Package{}) if err != nil { // Should not happen - b.CFlags was given an empty package. fmt.Fprintf(os.Stderr, "go: invalid cflags: %v\n", err) return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.6K bytes - Viewed (0) -
src/go/build/build.go
} args[i] = arg } switch verb { case "CFLAGS", "CPPFLAGS", "CXXFLAGS", "FFLAGS", "LDFLAGS": // Change relative paths to absolute. ctxt.makePathsAbsolute(args, di.Dir) } switch verb { case "CFLAGS": di.CgoCFLAGS = append(di.CgoCFLAGS, args...) case "CPPFLAGS": di.CgoCPPFLAGS = append(di.CgoCPPFLAGS, args...) case "CXXFLAGS":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62.3K bytes - Viewed (0) -
src/cmd/go/internal/work/exec.go
} return args } // CFlags returns the flags to use when invoking the C, C++ or Fortran compilers, or cgo. func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, ldflags []string, err error) { if cppflags, err = buildFlags("CPPFLAGS", "", p.CgoCPPFLAGS, checkCompilerFlags); err != nil { return } if cflags, err = buildFlags("CFLAGS", DefaultCFlags, p.CgoCFLAGS, checkCompilerFlags); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 14:46:37 UTC 2024 - 105.6K bytes - Viewed (0)