mirror of
https://github.com/golang/go
synced 2024-11-22 00:54:43 -07:00
8l: fix absolute path detection on Windows
Fixes #755. R=ken2 CC=golang-dev https://golang.org/cl/965047
This commit is contained in:
parent
b94ae26073
commit
74a23646bc
@ -103,6 +103,10 @@ addlib(char *src, char *obj)
|
||||
sprint(name, "");
|
||||
i = 1;
|
||||
} else
|
||||
if(isalpha(histfrog[0]->name[1]) && histfrog[0]->name[2] == ':') {
|
||||
strcpy(name, histfrog[0]->name+1);
|
||||
i = 1;
|
||||
} else
|
||||
if(histfrog[0]->name[1] == '.') {
|
||||
sprint(name, ".");
|
||||
i = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user