"GOCLOBBERDEADHASH",
"GOSSAFUNC",
"GO_SSA_PHI_LOC_CUTOFF",
- "GSHS_LOGFILE",
"GOSSAHASH",
}
for _, env := range magic {
fmt.Fprintf(h, "magic %s=%s\n", env, x)
}
}
+ if os.Getenv("GOSSAHASH") != "" {
+ for i := 0; ; i++ {
+ env := fmt.Sprintf("GOSSAHASH%d", i)
+ x := os.Getenv(env)
+ if x == "" {
+ break
+ }
+ fmt.Fprintf(h, "magic %s=%s\n", env, x)
+ }
+ }
+ if os.Getenv("GSHS_LOGFILE") != "" {
+ // Clumsy hack. Compiler writes to this log file,
+ // so do not allow use of cache at all.
+ // We will still write to the cache but it will be
+ // essentially unfindable.
+ fmt.Fprintf(h, "nocache %d\n", time.Now().UnixNano())
+ }
}
// Input files.