Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 713 for CFlags (0.09 sec)

  1. src/cmd/cgo/internal/testsanitizers/cshared_test.go

    			cSrc := dir.Join("main.c")
    			if err := os.WriteFile(cSrc, cMain, 0600); err != nil {
    				t.Fatalf("failed to write C source file: %v", err)
    			}
    
    			dstBin := dir.Join(name)
    			cmd, err := cc(config.cFlags...)
    			if err != nil {
    				t.Fatal(err)
    			}
    			cmd.Args = append(cmd.Args, config.ldFlags...)
    			cmd.Args = append(cmd.Args, "-o", dstBin, cSrc, lib)
    			mustRun(t, cmd)
    
    			cmd = hangProneCmd(dstBin)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. src/runtime/defs2_linux.go

    The asm header tricks we have to use for Linux on amd64
    (see defs.c and defs1.c) don't work here, so this is yet another
    file.  Sigh.
    */
    
    package runtime
    
    /*
    #cgo CFLAGS: -I/tmp/linux/arch/x86/include -I/tmp/linux/include -D_LOOSE_KERNEL_NAMES -D__ARCH_SI_UID_T=__kernel_uid32_t
    
    #define size_t __kernel_size_t
    #define pid_t int
    #include <asm/signal.h>
    #include <asm/mman.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 07 18:28:11 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  3. src/go/internal/srcimporter/srcimporter.go

    	args = append(args, bp.CgoCPPFLAGS...)
    	if len(bp.CgoPkgConfig) > 0 {
    		cmd := exec.Command("pkg-config", append([]string{"--cflags"}, bp.CgoPkgConfig...)...)
    		out, err := cmd.Output()
    		if err != nil {
    			return nil, fmt.Errorf("pkg-config --cflags: %w", err)
    		}
    		args = append(args, strings.Fields(string(out))...)
    	}
    	args = append(args, "-I", tmpdir)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 18:54:32 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  4. 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...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 17:39:23 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/project/taskfactory/AnnotationProcessingTaskFactoryTest.groovy

            then:
            def e = thrown WorkValidationException
            validateException(task, e,
                missingValueMessage { property('cCompiler').includeLink() },
                missingValueMessage { property('CFlags').includeLink() },
                missingValueMessage { property('dns').includeLink() },
                missingValueMessage { property('URL').includeLink() })
        }
    
        def propertyValidationJavaBeanSpecSingleChar() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:42:35 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/cgo_suspect_flag_force_external.txt

    # issues when users included odd/unusual flags (ex: -fplugin, -flto)
    # in CGO_CFLAGS, causing the Go linker to have to read and interpret
    # non-standard host objects.
    #
    # As of 1.21 we continue to use internal linking for programs whose
    # CGO use comes only from stdlib packages in the absence of any flag
    # funny business, however if the Go command sees flags that may be suspicious,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 25 18:16:01 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/test.go

       return c;
    }
    
    // issue 4857
    #cgo CFLAGS: -Werror
    const struct { int a; } *issue4857() { return (void *)0; }
    
    // issue 5224
    // Test that the #cgo CFLAGS directive works,
    // with and without platform filters.
    #cgo CFLAGS: -DCOMMON_VALUE=123
    #cgo windows CFLAGS: -DIS_WINDOWS=1
    #cgo !windows CFLAGS: -DIS_WINDOWS=0
    int common = COMMON_VALUE;
    int is_windows = IS_WINDOWS;
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  8. src/runtime/runtime-gdb_unix_test.go

    	if found := re.Find(rest) != nil; !found {
    		t.Fatalf("could not find runtime symbol in backtrace after signal handler:\n%s", rest)
    	}
    }
    
    const coreCrashThreadSource = `
    package main
    
    /*
    #cgo CFLAGS: -g -O0
    #include <stdio.h>
    #include <stddef.h>
    void trigger_crash()
    {
    	int* ptr = NULL;
    	*ptr = 1024;
    }
    */
    import "C"
    import (
    	"flag"
    	"fmt"
    	"os"
    	"runtime/debug"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 17 19:05:30 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. src/cmd/cgo/doc.go

    CGO_LDFLAGS environment variables are added to the flags derived from
    these directives. Package-specific flags should be set using the
    directives, not the environment variables, so that builds work in
    unmodified environments. Flags obtained from environment variables
    are not subject to the security limitations described above.
    
    All the cgo CPPFLAGS and CFLAGS directives in a package are concatenated and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  10. ci/official/containers/linux_arm64/builder.devtoolset/gcc9-fixups.patch

     	}
           else
     	++ep;
    +  }
     
       UNLOCK;
     
    diff --git a/support/Makefile b/support/Makefile
    index a253698..2f4e2a9 100644
    --- a/support/Makefile
    +++ b/support/Makefile
    @@ -167,13 +167,6 @@ CFLAGS-support_paths.c = \
     		-DINSTDIR_PATH=\"$(prefix)\" \
     		-DLIBDIR_PATH=\"$(libdir)\"
     
    -ifeq (,$(CXX))
    -LINKS_DSO_PROGRAM = links-dso-program-c
    -else
    -LINKS_DSO_PROGRAM = links-dso-program
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 14:52:45 UTC 2023
    - 8.9K bytes
    - Viewed (0)
Back to top