forked from golang/go
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On Windows the go.o file may be empty when the 'ar' command is run to generate a C-style library archive. This fix replaces all Sprintf path generation with calls to the canonical path.Join in lib.go, and also adds an os.Stat(). This appears to force Windows to flush the contents of go.o in a way that makes them visible to the 'ar' process which runs directly after. It is admittedly a hack, but an effective one. Perhaps a deeper investigation into the matter will reveal something useful.
- Loading branch information
1 parent
81e3aa8
commit 0df6140
Showing
1 changed file
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters