Merge "Set OUT_DIR=out with no src_deps."

This commit is contained in:
Treehugger Robot
2023-04-03 19:01:58 +00:00
committed by Gerrit Code Review

View File

@@ -208,6 +208,9 @@ func rustEnvVars(ctx ModuleContext, deps PathDeps) []string {
outDirPrefix = ""
}
envVars = append(envVars, "OUT_DIR="+filepath.Join(outDirPrefix, moduleGenDir.String()))
} else {
// TODO(pcc): Change this to "OUT_DIR=" after fixing crates to not rely on this value.
envVars = append(envVars, "OUT_DIR=out")
}
return envVars