Allow absolute target path in build.go

Fixes #1099.
This commit is contained in:
Fabian Wickborn 2017-07-14 11:54:19 +02:00
parent 1d2045cb61
commit 52004cdde8
1 changed files with 4 additions and 1 deletions

View File

@ -401,7 +401,10 @@ func main() {
if err != nil { if err != nil {
die("Getwd() returned %v\n", err) die("Getwd() returned %v\n", err)
} }
output := filepath.Join(cwd, outputFilename) output := outputFilename
if !filepath.IsAbs(output) {
output = filepath.Join(cwd, output)
}
version := getVersion() version := getVersion()
constants := Constants{} constants := Constants{}