Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 225 for linking (0.12 sec)

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

    # combination with selected "unusual" flags (involving plugins, LTO)
    # that we force external linking.  See related
    # issues 58619,  58620, and 58848.
    
    [compiler:gccgo] skip # only external linking for gccgo
    
    [!cgo] skip 'test verifies behavior that depends on CGO_CFLAGS'
    [mustlinkext] skip 'test expects internal linking for non-cgo programs'
    
    # Here we build three program: one with explicit CGO use, one with no
    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/link/internal/ld/config.go

    				ctxt.Logf("external linking prefer list is %v\n", preferlinkext)
    			}
    			if extNeeded || (iscgo && (externalobj || preferExternal)) {
    				ctxt.LinkMode = LinkExternal
    			} else {
    				ctxt.LinkMode = LinkInternal
    			}
    		}
    	}
    
    	switch ctxt.LinkMode {
    	case LinkInternal:
    		if extNeeded {
    			Exitf("internal linking requested %sbut external linking required: %s", via, extReason)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:14:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_android_issue62123.txt

    stderr 'android/amd64 requires external \(cgo\) linking, but cgo is not enabled'
    ! stderr 'cannot find runtime/cgo'
    
    ! go test -c -o $devnull os
    stderr '# os\nandroid/amd64 requires external \(cgo\) linking, but cgo is not enabled'
    ! stderr 'cannot find runtime/cgo'
    
    env GOOS=ios GOARCH=arm64 CGO_ENABLED=0
    
    ! go build -o $devnull cmd/buildid
    stderr 'ios/arm64 requires external \(cgo\) linking, but cgo is not enabled'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 21:55:28 UTC 2023
    - 683 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/cgo_stubs_ppc64x_internal_linking_test.go

    import "testing"
    
    // If gcc is used, and linking internally, __mulsc3 and __muldc3
    // will be linked in from libgcc which make several R_PPC64_TOC16_DS
    // relocations which may not be resolvable with the internal linker.
    func test8694(t *testing.T) { t.Skip("not supported on ppc64/ppc64le with internal linking") }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 15:35:35 UTC 2024
    - 631 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/gccgo_link_c.txt

    # Issue #7573
    # cmd/cgo: undefined reference when linking a C-library using gccgo
    
    [!cgo] skip
    [!exec:gccgo] skip
    [cross] skip  # gccgo can't necessarily cross-compile, so don't assume it will reach the step where we expect it to fail
    
    ! go build -x -compiler gccgo
    stderr 'gccgo.*\-L [^ ]*alibpath \-lalib' # make sure that Go-inline "#cgo LDFLAGS:" ("-L alibpath -lalib") passed to gccgo linking stage
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:38:51 UTC 2023
    - 617 bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/swift/SwiftLinkerTest.groovy

            1 * invocationContext.createInvocation("linking lib", outputFile.parentFile, expectedArgs, operationLogger) >> invocation
            1 * queue.add(invocation)
            1 * queue.setLogLocation(LOG_LOCATION)
            0 * _
        }
    
        def "use the emit-library flag when linking shared library"() {
            given:
            def testDir = tmpDirProvider.testDirectory
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 9K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/SourceSetLinkDependenciesIntegrationTest.groovy

                sources {
                    cpp1(CppSourceSet)
                }
            }
        }
    }
    """
        }
    
        @ToBeFixedForConfigurationCache
        def "library dependency of binary is available when linking all source sets"() {
            given:
            buildFile << """
    model {
        components {
            main {
                sources {
                    other(CppSourceSet) {
                        source.srcDir "src/other/cpp"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4K bytes
    - Viewed (0)
  8. src/internal/platform/supported.go

    	default:
    		return false
    	}
    }
    
    // MustLinkExternal reports whether goos/goarch requires external linking
    // with or without cgo dependencies.
    func MustLinkExternal(goos, goarch string, withCgo bool) bool {
    	if withCgo {
    		switch goarch {
    		case "loong64", "mips", "mipsle", "mips64", "mips64le":
    			// Internally linking cgo is incomplete on some architectures.
    			// https://go.dev/issue/14449
    			return true
    		case "arm64":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:50:22 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/build_plugin_reproducible.txt

    [!buildmode:plugin] skip
    [short] skip
    [!cgo] skip '-buildmode=plugin requires external linking'
    
    go build -trimpath -buildvcs=false -buildmode=plugin -o a.so main.go
    go build -trimpath -buildvcs=false -buildmode=plugin -o b.so main.go
    cmp -q a.so b.so
    
    -- main.go --
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:07:03 UTC 2024
    - 296 bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/gcc/GccLinkerTest.groovy

            1 * buildOperationExecutor.runAll(commandLineTool, _) >> { worker, action -> action.execute(queue) }
            1 * invocationContext.getArgAction() >> Actions.doNothing()
            1 * invocationContext.createInvocation("linking lib", expectedArgs, operationLogger) >> invocation
            1 * queue.add(invocation)
            1 * queue.setLogLocation(LOG_LOCATION)
            0 * _
        }
    
        List<String> getSoNameProp(def value) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 8.7K bytes
    - Viewed (0)
Back to top