summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAmlal <amlal@zka.com>2024-09-08 21:23:08 +0200
committerAmlal <amlal@zka.com>2024-09-08 21:23:08 +0200
commitb24daff9b2931a8152e6056a88b40823d6adcd78 (patch)
tree5a8e24575a05164bfabf669dc4493591e5e02e00 /src
parent8f11de51accb696a49c05b131109baec987850ac (diff)
Renamed and fixed JSON builder.
Signed-off-by: Amlal <amlal@zka.com>
Diffstat (limited to 'src')
-rw-r--r--src/build.cxx (renamed from src/manifest_builder.cxx)4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/manifest_builder.cxx b/src/build.cxx
index 04d46c8..b0e759f 100644
--- a/src/manifest_builder.cxx
+++ b/src/build.cxx
@@ -78,9 +78,9 @@ bool ManifestBuilder::buildJson(int arg_sz, const char* arg_val)
cmdLine += flag.get<std::string>() + " ";
}
- if (!buildme["compiler_std"].get<std::string>().empty())
+ if (buildme["compiler_std"].is_string())
cmdLine += "-std=" + buildme["compiler_std"].get<std::string>() + " ";
-
+
cmdLine += "-o " + buildme["output_name"].get<std::string>();
std::system(cmdLine.c_str());