]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use file content, not suffix, to distinguish .a and .o files
authorRuss Cox <rsc@golang.org>
Thu, 1 Jun 2017 18:26:55 +0000 (14:26 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 6 Jun 2017 19:50:00 +0000 (19:50 +0000)
commit3c1914fc46e67ee7628428b68ab3497ca5d44d89
tree76329ae973d12f55ed3b6d4803cc6378d7947bd8
parent4f2269edbd1b3e09484001c9cc7897b49c828b45
cmd/compile: use file content, not suffix, to distinguish .a and .o files

This allows reading from package storage systems that may not
preserve the .a suffix (used with -importcfg).

Fixes #20579 (combined with CLs earlier in stack).

Change-Id: If2fc6a3d01bd0170a757e1f2ba9a22a4d9be7dbf
Reviewed-on: https://go-review.googlesource.com/44853
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/gc/main.go