summaryrefslogtreecommitdiff
path: root/configure.cc
diff options
context:
space:
mode:
Diffstat (limited to 'configure.cc')
-rw-r--r--configure.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.cc b/configure.cc
index c19910e..ab2f837 100644
--- a/configure.cc
+++ b/configure.cc
@@ -233,24 +233,28 @@ int configure(int argc, char* argv[])
auto cc_env = getenv("CC");
if(cc_env)
{
+ cmd_str = std::string("CC=") + cc_env + " " + cmd_str;
cc_prog = cc_env;
}
auto cxx_env = getenv("CXX");
if(cxx_env)
{
+ cmd_str = std::string("CXX=") + cxx_env + " " + cmd_str;
cxx_prog = cxx_env;
}
auto ar_env = getenv("AR");
if(ar_env)
{
+ cmd_str = std::string("AR=") + ar_env + " " + cmd_str;
ar_prog = ar_env;
}
auto ld_env = getenv("LD");
if(ld_env)
{
+ cmd_str = std::string("LD=") + ld_env + " " + cmd_str;
ld_prog = ld_env;
}
@@ -263,6 +267,7 @@ int configure(int argc, char* argv[])
std::string build_ar = locate(build_arch, ar_prog);
std::string build_ld = locate(build_arch, ld_prog);
+ std::cout << "Writing results to: " << configurationFile.string() << "\n";
{
std::ofstream istr(configurationFile);
istr << "#include \"libcppbuild.h\"\n\n";