Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 311 for lchflags (0.2 sec)

  1. 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)
  2. src/cmd/link/internal/ld/testdata/issue32233/lib/lib.go

    // Copyright 2019 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 lib
    
    /*
    #cgo darwin CFLAGS: -D__MAC_OS_X_VERSION_MAX_ALLOWED=101450
    #cgo darwin LDFLAGS: -framework Foundation -framework AppKit
    #include "stdlib.h"
    int function(void);
    */
    import "C"
    import "fmt"
    
    func DoC() {
    	C.function()
    	fmt.Println("called c function")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:51:40 UTC 2019
    - 428 bytes
    - Viewed (0)
  3. src/cmd/link/elf_test.go

    		t.Logf("%s %v -c -o %s %s", cc, cflags, obj, csrcFile)
    		if out, err := testenv.Command(t, cc, append(cflags, "-c", "-o", obj, csrcFile)...).CombinedOutput(); err != nil {
    			t.Logf("%s", out)
    			t.Fatal(err)
    		}
    	}
    
    	sysoObj := filepath.Join(dir, "ldr.syso")
    	t.Logf("%s %v -nostdlib -r -o %s %v", cc, cflags, sysoObj, objs)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 16:34:01 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testsanitizers/testdata/tsan4.go

    // 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++ {
    		wg.Add(1)
    		go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 634 bytes
    - Viewed (0)
  5. src/runtime/msan/msan.go

    // 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)
  6. 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)
  7. src/cmd/go/internal/load/flag.go

    package load
    
    import (
    	"cmd/go/internal/base"
    	"cmd/internal/quoted"
    	"fmt"
    	"strings"
    )
    
    var (
    	BuildAsmflags   PerPackageFlag // -asmflags
    	BuildGcflags    PerPackageFlag // -gcflags
    	BuildLdflags    PerPackageFlag // -ldflags
    	BuildGccgoflags PerPackageFlag // -gccgoflags
    )
    
    // A PerPackageFlag is a command-line flag implementation (a flag.Value)
    // that allows specifying different effective flags for different packages.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 20:20:43 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/sigprocmask.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 !windows
    
    package cgotest
    
    /*
    #cgo CFLAGS: -pthread
    #cgo LDFLAGS: -pthread
    extern int RunSigThread();
    extern int CheckBlocked();
    */
    import "C"
    import (
    	"os"
    	"os/signal"
    	"syscall"
    	"testing"
    )
    
    var blocked bool
    
    //export IntoGoAndBack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 808 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testsanitizers/testdata/tsan7.go

    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() {
    		defer wg.Done()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 708 bytes
    - Viewed (0)
  10. 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)
Back to top