Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 285 for ldflag (0.52 sec)

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

    # This test checks that external linking with --gc-sections does not strip version information.
    
    [short] skip
    [!cgo] skip
    [GOOS:aix] skip  # no --gc-sections
    [GOOS:darwin] skip  # no --gc-sections
    
    go build -ldflags='-linkmode=external -extldflags=-Wl,--gc-sections'
    go version hello$GOEXE
    ! stdout 'not a Go executable'
    ! stderr 'not a Go executable'
    
    -- go.mod --
    module hello
    -- hello.go --
    package main
    
    /*
    */
    import "C"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 15:17:57 UTC 2023
    - 460 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/linkname.txt

    env GO111MODULE=off
    
    # check for linker name in error message about linker crash
    [!compiler:gc] skip
    ! go build -ldflags=-crash_for_testing x.go
    stderr [\\/]tool[\\/].*[\\/]link
    
    -- x.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 219 bytes
    - Viewed (0)
  3. test/fixedbugs/issue20014.go

    // runindir -goexperiment fieldtrack -ldflags -k=main.fieldTrackInfo
    
    // Copyright 2021 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.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 21 20:24:34 UTC 2021
    - 246 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue8756/issue8756.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.
    
    package issue8756
    
    /*
    #cgo !darwin LDFLAGS: -lm
    #include <math.h>
    */
    import "C"
    
    func Pow() {
    	C.pow(1, 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 269 bytes
    - Viewed (0)
  5. test/fixedbugs/issue30908.go

    // rundir -ldflags -strictdups=2 -w=0
    
    // Copyright 2019 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.
    
    //go:build !nacl && !js
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 240 bytes
    - Viewed (0)
  6. cmd/kube-scheduler/app/options/options.go

    	"k8s.io/client-go/tools/clientcmd"
    	"k8s.io/client-go/tools/events"
    	"k8s.io/client-go/tools/leaderelection"
    	"k8s.io/client-go/tools/leaderelection/resourcelock"
    	"k8s.io/client-go/tools/record"
    	cliflag "k8s.io/component-base/cli/flag"
    	componentbaseconfig "k8s.io/component-base/config"
    	"k8s.io/component-base/config/options"
    	"k8s.io/component-base/logs"
    	logsapi "k8s.io/component-base/logs/api/v1"
    	"k8s.io/component-base/metrics"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 17 17:06:29 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue24161arg/use.go

    // Copyright 2018 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.
    
    //go:build darwin
    
    package issue24161arg
    
    /*
    #cgo LDFLAGS: -framework CoreFoundation
    #include <CoreFoundation/CoreFoundation.h>
    */
    import "C"
    import "testing"
    
    func Test(t *testing.T) {
    	a := test24161array()
    	C.CFArrayCreateCopy(0, a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 398 bytes
    - Viewed (0)
  8. platforms/jvm/scala/src/main/java/org/gradle/api/internal/tasks/scala/ZincScalaCompilerArgumentsGenerator.java

            addFlag("-deprecation", options.isDeprecation(), result);
            addFlag("-unchecked", options.isUnchecked(), result);
            addConcatenatedOption("-g:", options.getDebugLevel(), result);
            addFlag("-optimise", options.isOptimize(), result);
            addOption("-encoding", options.getEncoding(), result);
            addFlag("-verbose", "verbose".equals(options.getDebugLevel()), result);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_ppc64le_cgo_inline_plt.txt

    #
    # 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>
    void helloworld(void) {
       printf("helloworld\n");
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 719 bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/testdata/issue32233/lib/lib.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package lib
    
    /*
    #cgo darwin CFLAGS: -D__MAC_OS_X_VERSION_MAX_ALLOWED=101450
    #cgo darwin LDFLAGS: -framework Foundation -framework AppKit
    #include "stdlib.h"
    int function(void);
    */
    import "C"
    import "fmt"
    
    func DoC() {
    	C.function()
    	fmt.Println("called c function")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:51:40 UTC 2019
    - 428 bytes
    - Viewed (0)
Back to top