Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for CGO_CFLAGS (0.13 sec)

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

    env CGO_CFLAGS=-fplugin
    go build -x -n -o dummy.exe ./usesInternalCgo
    stderr preferlinkext
    env CGO_CFLAGS=-fprofile-instr-generate
    go build -x -n -o dummy.exe ./usesInternalCgo
    stderr preferlinkext
    
    # The -fdebug-prefix-map=path is permitted for internal linking.
    env CGO_CFLAGS=-fdebug-prefix-map=/some/sandbox/execroot/workspace=/tmp/new
    go build -x -n -o dummy.exe ./usesInternalCgo
    ! stderr preferlinkext
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 25 18:16:01 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/env_changed.txt

    env GOSUMDB=nodefault
    env GOPROXY=nodefault
    env GO111MODULE=auto
    env CGO_CFLAGS=nodefault
    env CGO_CPPFLAGS=nodefault
    
    go env -changed
    # linux output like GOTOOLCHAIN='local'
    # windows output like GOTOOLCHAIN=local
    stdout 'GOTOOLCHAIN=''?local''?'
    stdout 'GOSUMDB=''?nodefault''?'
    stdout 'GOPROXY=''?nodefault''?'
    stdout 'GO111MODULE=''?auto''?'
    stdout 'CGO_CFLAGS=''?nodefault''?'
    stdout 'CGO_CPPFLAGS=''?nodefault''?'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:49:03 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/cgo_stale.txt

    # golang.org/issue/46347: a stale runtime/cgo should only force a single rebuild
    
    [!cgo] skip
    [short] skip
    
    
    # If we set a unique CGO_CFLAGS, the installed copy of runtime/cgo
    # should be reported as stale.
    
    env CGO_CFLAGS=-DTestScript_cgo_stale=true
    stale runtime/cgo
    
    
    # If we then build a package that uses cgo, runtime/cgo should be rebuilt and
    # cached with the new flag, but not installed to GOROOT.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 22:43:41 UTC 2022
    - 888 bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/cgo_stale_precompiled.txt

    # Explicitly rebuild it to ensure that it is cached.
    # (See https://go.dev/issue/50892.)
    #
    # If running in non-short mode, explicitly vary CGO_CFLAGS
    # as a control case (to ensure that our regexps do catch rebuilds).
    
    [!short] env GOCACHE=$WORK/cache
    [!short] env CGO_CFLAGS=-DTestScript_cgo_stale_precompiled=true
    go build -x runtime/cgo
    [!short] stderr '[/\\]cgo'$GOEXE'["]? .* -importpath runtime/cgo'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. src/cmd/link/cgo_test.go

    	default:
    		t.Fatalf("bad case %d", test)
    	}
    
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "build")
    	cmd.Dir = dir
    	cgoCflags += " -flto"
    	cmd.Env = append(cmd.Environ(), "CGO_CFLAGS="+cgoCflags)
    
    	t.Logf("CGO_CFLAGS=%q %v", cgoCflags, cmd)
    	out, err := cmd.CombinedOutput()
    	t.Logf("%s", out)
    
    	if err != nil {
    		t.Logf("go build failed: %v", err)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 09 22:13:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/version_build_settings.txt

    # Other flags are added if CGO_ENABLED is true.
    env CGO_ENABLED=0
    go build
    go version -m m$GOEXE
    stdout '^\tbuild\tCGO_ENABLED=0$'
    ! stdout CGO_CPPFLAGS|CGO_CFLAGS|CGO_CXXFLAGS|CGO_LDFLAGS
    
    [cgo] env CGO_ENABLED=1
    [cgo] env CGO_CPPFLAGS=-DFROM_CPPFLAGS=1
    [cgo] env CGO_CFLAGS=-DFROM_CFLAGS=1
    [cgo] env CGO_CXXFLAGS=-DFROM_CXXFLAGS=1
    [cgo] env CGO_LDFLAGS=-L/extra/dir/does/not/exist
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/issue36000.txt

    # Tests golang.org/issue/36000
    
    [!cgo] skip
    
    # go env with CGO flags should not make NUL file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 20 21:52:17 UTC 2020
    - 112 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_ppc64le_cgo_inline_plt.txt

    #
    # Verifies golang.org/issue/53345
    #
    # Note, older gcc/clang may accept this option, but
    # ignore it if binutils does not support the relocs.
    [!compiler:gc] skip
    [!cgo] skip
    [!GOARCH:ppc64le] skip
    
    env CGO_CFLAGS='-fno-plt -O2 -g'
    
    go build -ldflags='-linkmode=internal'
    exec ./noplttest
    stdout helloworld
    
    -- go.mod --
    module noplttest
    
    -- noplttest.go --
    package main
    
    /*
    #include <stdio.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 719 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testerrors/testdata/issue14669.go

    // Copyright 2016 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.
    
    // Issue 14669: test that fails when build with CGO_CFLAGS selecting
    // optimization.
    
    package p
    
    /*
    const int E = 1;
    
    typedef struct s {
    	int       c;
    } s;
    */
    import "C"
    
    func F() {
    	_ = C.s{
    		c: C.E,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 368 bytes
    - Viewed (0)
  10. src/internal/cfg/cfg.go

    // cmd/go/internal/cfg instead of this package.
    package cfg
    
    // KnownEnv is a list of environment variables that affect the operation
    // of the Go command.
    const KnownEnv = `
    	AR
    	CC
    	CGO_CFLAGS
    	CGO_CFLAGS_ALLOW
    	CGO_CFLAGS_DISALLOW
    	CGO_CPPFLAGS
    	CGO_CPPFLAGS_ALLOW
    	CGO_CPPFLAGS_DISALLOW
    	CGO_CXXFLAGS
    	CGO_CXXFLAGS_ALLOW
    	CGO_CXXFLAGS_DISALLOW
    	CGO_ENABLED
    	CGO_FFLAGS
    	CGO_FFLAGS_ALLOW
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 01:33:19 UTC 2024
    - 1.2K bytes
    - Viewed (0)
Back to top