summaryrefslogtreecommitdiff
path: root/race.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-05-06 14:26:34 +0200
committerJakob Unterwurzacher2017-05-06 14:26:34 +0200
commita48893b653085b067f91e11806e4de017741d509 (patch)
treed4d176163a0b0ccca837be96b84536eb6662733f /race.go
parentc52e1abc5869dd27a28f71ff43ec4e1c1917acf4 (diff)
main: add "-race" to the version string
...if we were compiled with "-race".
Diffstat (limited to 'race.go')
-rw-r--r--race.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/race.go b/race.go
new file mode 100644
index 0000000..a17501a
--- /dev/null
+++ b/race.go
@@ -0,0 +1,8 @@
+// +build race
+
+package main
+
+func init() {
+ // adds " -race" to the output of "gocryptfs -version"
+ raceDetector = true
+}