Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 65 for CFLAGS (0.18 sec)

  1. src/cmd/cgo/internal/testsanitizers/testdata/tsan7.go

    // license that can be found in the LICENSE file.
    
    package main
    
    // Setting an environment variable in a cgo program changes the C
    // environment. Test that this does not confuse the race detector.
    
    /*
    #cgo CFLAGS: -fsanitize=thread
    #cgo LDFLAGS: -fsanitize=thread
    */
    import "C"
    
    import (
    	"fmt"
    	"os"
    	"sync"
    	"time"
    )
    
    func main() {
    	var wg sync.WaitGroup
    	var mu sync.Mutex
    	f := func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 708 bytes
    - Viewed (0)
  2. src/runtime/msan/msan.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build msan && ((linux && (amd64 || arm64 || loong64)) || (freebsd && amd64))
    
    package msan
    
    /*
    #cgo CFLAGS: -fsanitize=memory
    #cgo LDFLAGS: -fsanitize=memory
    
    #include <stdint.h>
    #include <sanitizer/msan_interface.h>
    
    void __msan_read_go(void *addr, uintptr_t sz) {
    	__msan_check_mem_is_initialized(addr, sz);
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 729 bytes
    - Viewed (0)
  3. src/runtime/testdata/testprogcgo/traceback.go

    package main
    
    // This program will crash.
    // We want the stack trace to include the C functions.
    // We use a fake traceback, and a symbolizer that dumps a string we recognize.
    
    /*
    #cgo CFLAGS: -g -O0
    
    // Defined in traceback_c.c.
    extern int crashInGo;
    int tracebackF1(void);
    void cgoTraceback(void* parg);
    void cgoSymbolizer(void* parg);
    */
    import "C"
    
    import (
    	"runtime"
    	"unsafe"
    )
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 24 21:47:44 UTC 2020
    - 949 bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_ppc64_linker_funcs.txt

    stdout success
    
    go build -buildmode=pie -o abitest.pie -ldflags='-linkmode=internal'
    exec ./abitest.pie
    stdout success
    
    -- go.mod --
    module abitest
    
    -- abitest.go --
    package main
    
    /*
    #cgo CFLAGS: -Os
    
    int foo_fpr() {
            asm volatile("":::"fr31","fr30","fr29","fr28");
    }
    int foo_gpr0() {
            asm volatile("":::"r30","r29","r28");
    }
    int foo_gpr1() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:54:08 UTC 2024
    - 1K bytes
    - Viewed (0)
  5. build/pause/Makefile

    ALL_OSVERSIONS.windows := 1809 ltsc2022
    ALL_OS_ARCH.windows = $(foreach arch, $(ALL_ARCH.windows), $(foreach osversion, ${ALL_OSVERSIONS.windows}, windows-$(arch)-${osversion}))
    ALL_OS_ARCH = $(foreach os, $(ALL_OS), ${ALL_OS_ARCH.${os}})
    
    CFLAGS = -Os -Wall -Werror -static -DVERSION=v$(TAG)-$(REV)
    KUBE_CROSS_IMAGE ?= registry.k8s.io/build-image/kube-cross
    KUBE_CROSS_VERSION ?= $(shell cat ../build-image/cross/VERSION)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 19:31:40 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue20266.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 20266: use -I with a relative path.
    
    package cgotest
    
    /*
    #cgo CFLAGS: -I issue20266 -Iissue20266 -Ddef20266
    #include "issue20266.h"
    */
    import "C"
    
    import "testing"
    
    func test20266(t *testing.T) {
    	if got, want := C.issue20266, 20266; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 463 bytes
    - Viewed (0)
  7. src/os/user/cgo_lookup_cgo.go

    // license that can be found in the LICENSE file.
    
    //go:build cgo && !osusergo && unix && !android && !darwin
    
    package user
    
    import (
    	"syscall"
    )
    
    /*
    #cgo solaris CFLAGS: -D_POSIX_PTHREAD_SEMANTICS
    #cgo CFLAGS: -fno-stack-protector
    #include <unistd.h>
    #include <sys/types.h>
    #include <pwd.h>
    #include <grp.h>
    #include <stdlib.h>
    #include <string.h>
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 16 17:45:51 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/cgo_flag_contains_space.txt

    stderr '"-L[^"]+ld flags"' # find quoted ld flags
    ! stderr '"-L[^"]+c flags".*"-L[^"]+c flags"' # don't find too many quoted ld flags per line
    
    -- main.go --
    package main
    // #cgo CFLAGS: -I"c flags"
    // #cgo LDFLAGS: -L"ld flags"
    import "C"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 12 17:46:03 UTC 2020
    - 523 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue24161e0/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 issue24161e0
    
    /*
    #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
    - 919 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testsanitizers/testdata/tsan2.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
    
    extern void GoRun(void);
    
    // Yes, you can have definitions if you use //export, as long as they are weak.
    
    int val __attribute__ ((weak));
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 940 bytes
    - Viewed (0)
Back to top