| 1 |
# .a files should use slash-separated paths even on windows |
| 2 |
# This is important for reproducing native builds with cross-compiled builds. |
| 3 |
go build -o x.a text/template |
| 4 |
! grep 'GOROOT\\' x.a |
| 5 |
! grep 'text\\template' x.a |
| 6 |
! grep 'c:\\' x.a |
| 7 |
|
| 8 |
# executables should use slash-separated paths even on windows |
| 9 |
# This is important for reproducing native builds with cross-compiled builds. |
| 10 |
go build -o hello.exe hello.go |
| 11 |
! grep 'GOROOT\\' hello.exe |
| 12 |
! grep '\\runtime' hello.exe |
| 13 |
! grep 'runtime\\' hello.exe |
| 14 |
! grep 'gofile..[A-Za-z]:\\' hello.exe |
| 15 |
|
| 16 |
-- hello.go -- |
| 17 |
package main |
| 18 |
func main() { println("hello") } |