gollvm: support --gcc-toolchain flag
For explicitly specify GCC toolchain directory, similar to what
clang does.
Change-Id: I5afa14caff8768205040a001cd2cc2761d5453ce
Reviewed-on: https://go-review.googlesource.com/116219
Reviewed-by: Than McIntosh <thanm@google.com>
diff --git a/driver/Driver.h b/driver/Driver.h
index 748b43c..e6185ca 100644
--- a/driver/Driver.h
+++ b/driver/Driver.h
@@ -88,6 +88,9 @@
// Sysroot (or empty string if not present)
std::string sysRoot() { return sysroot_; }
+ // gccToolchainDir (or empty string if not present)
+ std::string gccToolchainDir() { return gccToolchainDir_; }
+
// Install directory of compiler binary.
std::string installDir() { return installDir_; }
@@ -115,6 +118,7 @@
llvm::opt::OptTable *opts_;
const char *progname_;
std::string sysroot_;
+ std::string gccToolchainDir_;
std::string installDir_;
std::string executablePath_;
// maps target to toolchain for that target