summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/manifest_builder.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/manifest_builder.cxx b/src/manifest_builder.cxx
index a020782..04d46c8 100644
--- a/src/manifest_builder.cxx
+++ b/src/manifest_builder.cxx
@@ -78,7 +78,9 @@ bool ManifestBuilder::buildJson(int arg_sz, const char* arg_val)
cmdLine += flag.get<std::string>() + " ";
}
- cmdLine += "-std=" + buildme["compiler_std"].get<std::string>() + " ";
+ if (!buildme["compiler_std"].get<std::string>().empty())
+ cmdLine += "-std=" + buildme["compiler_std"].get<std::string>() + " ";
+
cmdLine += "-o " + buildme["output_name"].get<std::string>();
std::system(cmdLine.c_str());