summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-24 10:34:05 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-24 10:34:05 -0400
commit3bc2342303973525addf3714d3daadd3d308efec (patch)
tree43f70f54a32570e29ea34791e191f388db5823ed /main.go
parent19ba0321b0bdd1b284015226474a6d54fe76e911 (diff)
Add -root flag so tests can write artifacts to tmp
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index d557ab204..c7b92f17e 100644
--- a/main.go
+++ b/main.go
@@ -13,6 +13,8 @@ var flagReload = flag.Bool("reload", false, "Reload cached remote source code.")
var flagV8Options = flag.Bool("v8-options", false, "Print V8 command line options.")
var flagDebug = flag.Bool("debug", false, "Enable debug output.")
var flagGoProf = flag.String("goprof", "", "Write golang cpu profile to file.")
+var flagRoot = flag.String("root", "",
+ "Where to cache compilation artifacts. Default: ~/.deno")
func stringAsset(path string) string {
data, err := Asset("dist/" + path)