aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder
diff options
context:
space:
mode:
Diffstat (limited to 'builder')
-rw-r--r--builder/build.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/builder/build.go b/builder/build.go
index c4831de02..4e73bd096 100644
--- a/builder/build.go
+++ b/builder/build.go
@@ -99,7 +99,11 @@ func Build(pkgName, outpath string, config *compileopts.Config, action func(Buil
if err != nil {
return err
}
- defer os.RemoveAll(dir)
+ if config.Options.Work {
+ fmt.Printf("WORK=%s\n", dir)
+ } else {
+ defer os.RemoveAll(dir)
+ }
// Check for a libc dependency.
// As a side effect, this also creates the headers for the given libc, if