• Russ Cox's avatar
    cmd/go: ignore C files when CGO_ENABLED=0 · 0c7ccbf6
    Russ Cox authored
    Before, those C files might have been intended for the Plan 9 C compiler,
    but that option was removed in Go 1.5. We can simplify the maintenance
    of cgo packages now if we assume C files (and C++ and M and SWIG files)
    should only be considered when cgo is enabled.
    
    Also remove newly unnecessary build tags in runtime/cgo's C files.
    
    Fixes #14123
    
    Change-Id: Ia5a7fe62b9469965aa7c3547fe43c6c9292b8205
    Reviewed-on: https://go-review.googlesource.com/19613Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    0c7ccbf6
gcc_windows_amd64.c 1.27 KB