Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository

Switch branch/tag
  • go
  • src
  • cmd
  • go
  • go_test.go
Find file BlameHistoryPermalink
  • Ian Lance Taylor's avatar
    cmd/go: add LDFLAGS to cache ID when using cgo · 5fbfda6a
    Ian Lance Taylor authored Jul 06, 2018
    The cgo tool records the value of the CGO_LDFLAGS environment variable
    in the generated file, so that the linker can later read and use it.
    Therefore, we must add CGO_LDFLAGS to the cache ID, as otherwise
    changing CGO_LDFLAGS may cause a build result to be incorrectly read
    from the cache, producing a different final program.
    
    Change-Id: Ic89c1edc4069837451a36376710ca9b56fb87455
    Reviewed-on: https://go-review.googlesource.com/122520
    
    
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    5fbfda6a

Replace go_test.go

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7