Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for CFLAGS (0.18 sec)

  1. src/cmd/go/testdata/script/cgo_bad_directives.txt

    # Reject #cgo CFLAGS: -D @foo
    cp y_cflags_dash_d_space_at_foo.txt y.go
    ! go build x
    stderr 'invalid flag in #cgo CFLAGS: -D @foo'
    
    # Reject #cgo CFLAGS -D@foo
    cp y_cflags_dash_d_at_foo.txt y.go
    ! go build x
    stderr 'invalid flag in #cgo CFLAGS: -D@foo'
    
    # Check for CFLAGS in commands
    env CGO_CFLAGS=-D@foo
    cp y_no_cflags.txt y.go
    go build -n x
    stderr '-D@foo'
    
    -- go.mod --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  2. src/regexp/testdata/testregex.c

    					cflags |= REG_ICASE;
    					continue;
    				case 'j':
    					cflags |= REG_SPAN;
    					continue;
    				case 'k':
    					cflags |= REG_ESCAPE;
    					continue;
    				case 'l':
    					cflags |= REG_LEFT;
    					continue;
    				case 'm':
    					cflags |= REG_MINIMAL;
    					continue;
    				case 'n':
    					cflags |= REG_NEWLINE;
    					continue;
    				case 'o':
    					cflags |= REG_SHELL_GROUP;
    					continue;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/go/testdata/script/cgo_trimpath_macro.txt

    package main
    
    // #cgo CFLAGS: -I../c
    // #include "stdio.h"
    // void printfile();
    import "C"
    
    func main() {
        C.printfile()
        C.fflush(C.stdout)
    }
    -- vendor/v.com/main/foo.c --
    #include "bar.h"
    -- vendor/v.com/c/bar.h --
    #include "stdio.h"
    
    void printfile() {
        printf("%s\n", __FILE__);
    }
    -- main/main.go --
    package main
    
    // #cgo CFLAGS: -I../c
    // #include "stdio.h"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 22 19:56:37 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/internal/project/taskfactory/AnnotationProcessingTasks.java

            private String CFlags;
            private String dns;
            private String URL;
            private String a;
            private String b;
    
            @Inject
            public TaskWithJavaBeanCornerCaseProperties(String cCompiler, String CFlags, String dns, String URL, String a, String b) {
                this.cCompiler = cCompiler;
                this.CFlags = CFlags;
                this.dns = dns;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 12 11:41:48 UTC 2022
    - 15.8K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/cgo/internal/testsanitizers/cc_test.go

    		compiler, _ := compilerVersion()
    		if compiler.name == "gcc" {
    			c.cFlags = append(c.cFlags, "-fPIC")
    			c.ldFlags = append(c.ldFlags, "-fPIC", "-static-libtsan")
    		}
    
    	case "address":
    		c.goFlags = append(c.goFlags, "-asan")
    		// Set the debug mode to print the C stack trace.
    		c.cFlags = append(c.cFlags, "-g")
    
    	case "fuzzer":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 20:00:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  10. src/runtime/testdata/testprogcgo/sigpanic.go

    // license that can be found in the LICENSE file.
    
    package main
    
    // This program will crash.
    // We want to test unwinding from sigpanic into C code (without a C symbolizer).
    
    /*
    #cgo CFLAGS: -O0
    
    char *pnil;
    
    static int f1(void) {
    	*pnil = 0;
    	return 0;
    }
    */
    import "C"
    
    func init() {
    	register("TracebackSigpanic", TracebackSigpanic)
    }
    
    func TracebackSigpanic() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 02:13:21 UTC 2018
    - 484 bytes
    - Viewed (0)
Back to top