Kludge file location from Caller().
The behavior of Caller() is not guaranteed, and sometimes contains
artifacts of optimization.  Work around its unpredictability by adding
another case.
@@ -42,6 +42,9 @@ var installedLibPath string
func init() {
_, buildGO, _, _ = runtime.Caller(1)
+ if buildGO == "<autogenerated>" {
+ _, buildGO, _, _ = runtime.Caller(0)
+ }
buildDir = path.Dir(buildGO)
hostSrcDir = path.Join(buildDir, "../c/src")
configGO = path.Join(buildDir, "lucy", "config.go")
