Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for csflags (0.3 sec)

  1. src/cmd/cgo/internal/swig/swig_test.go

    		extraLDFlags := ""
    		if strings.Contains(testenv.Builder(), "clang") {
    			extraLDFlags += " -fuse-ld=lld"
    		}
    		const cflags = "-flto -Wno-lto-type-mismatch -Wno-unknown-warning-option"
    		cmd.Env = append(cmd.Environ(),
    			"CGO_CFLAGS="+cflags,
    			"CGO_CXXFLAGS="+cflags,
    			"CGO_LDFLAGS="+cflags+extraLDFlags)
    	}
    	out, err := cmd.CombinedOutput()
    	if string(out) != "OK\n" {
    		t.Errorf("%s", string(out))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. 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)
  3. src/internal/goexperiment/flags.go

    // and "go version <binary>" if it differs from the default experiments.
    //
    // For the set of experiments supported by the current toolchain, see
    // "go doc goexperiment.Flags".
    //
    // Note that this package defines the set of experiments (in Flags)
    // and records the experiments that were enabled when the package
    // was compiled (as boolean and integer constants).
    //
    // Note especially that this package does not itself change behavior
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 16:19:47 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt

    [!GOOS:darwin] skip
    [!cgo] skip
    
    ! go build
    stderr 'invalid flag in #cgo LDFLAGS: -lto_library'
    
    -- go.mod --
    module ldflag
    
    -- main.go --
    package main
    
    // #cgo CFLAGS: -flto
    // #cgo LDFLAGS: -lto_library bad.dylib
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:41:16 UTC 2024
    - 241 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_ppc64_linker_funcs.txt

    [!GOOS:linux] skip
    [!compiler:gc] skip
    [!cgo] skip
    [!GOARCH:ppc64le] skip
    
    go build -ldflags='-linkmode=internal'
    exec ./abitest
    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");
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:54:08 UTC 2024
    - 1K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/internal/obj/riscv/anames.go

    	"AMOMAXUW",
    	"AMOMINW",
    	"AMOMINUW",
    	"RDCYCLE",
    	"RDCYCLEH",
    	"RDTIME",
    	"RDTIMEH",
    	"RDINSTRET",
    	"RDINSTRETH",
    	"FRCSR",
    	"FSCSR",
    	"FRRM",
    	"FSRM",
    	"FRFLAGS",
    	"FSFLAGS",
    	"FSRMI",
    	"FSFLAGSI",
    	"FLW",
    	"FSW",
    	"FADDS",
    	"FSUBS",
    	"FMULS",
    	"FDIVS",
    	"FMINS",
    	"FMAXS",
    	"FSQRTS",
    	"FMADDS",
    	"FMSUBS",
    	"FNMADDS",
    	"FNMSUBS",
    	"FCVTWS",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 14:19:33 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. src/net/cgo_unix_cgo.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo && !netgo && unix && !darwin
    
    package net
    
    /*
    #define _GNU_SOURCE 1
    
    #cgo CFLAGS: -fno-stack-protector
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <netdb.h>
    #include <unistd.h>
    #include <string.h>
    #include <stdlib.h>
    
    #ifndef EAI_NODATA
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 17:49:28 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testsanitizers/libfuzzer_test.go

    			// build C code (if any) and link with Go code
    			cmd, err := cc(config.cFlags...)
    			if err != nil {
    				t.Fatalf("error running cc: %v", err)
    			}
    			cmd.Args = append(cmd.Args, config.ldFlags...)
    			cmd.Args = append(cmd.Args, "-o", outPath, "-I", dir.Base())
    			if tc.cSrc != "" {
    				cmd.Args = append(cmd.Args, srcPath(tc.cSrc))
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 00:12:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. hack/verify-flags-underscore.py

        return all_files
    
    # Collects all the flags used in golang files and verifies the flags do
    # not contain underscore. If any flag needs to be excluded from this check,
    # need to add that flag in hack/verify-flags/excluded-flags.txt.
    def check_underscore_in_flags(rootdir, files):
        # preload the 'known' flags which don't follow the - standard
        pathname = os.path.join(rootdir, "hack/verify-flags/excluded-flags.txt")
        f = open(pathname, 'r')
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:51 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top