Add yacc and lex support
Add support for yacc (.y or .yy) and lex (.l or .ll) files. Also
tweak locations of .o files for normal and generated sources to
makes sure they don't collide.
Change-Id: I03172cddbdc022525bf392a81d72050406b8cdb3
diff --git a/config/config.go b/config/config.go
index c087070..e324e42 100644
--- a/config/config.go
+++ b/config/config.go
@@ -123,6 +123,10 @@
return c.srcDir
}
+func (c *Config) IntermediatesDir() string {
+ return ".intermediates"
+}
+
// HostGoOS returns the OS of the system that the Go toolchain is being run on.
func (c *Config) HostGoOS() string {
return runtime.GOOS