From 3d704f48f37b5904a10a98668ebdd52e8bb6b595 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 5 Sep 2024 13:35:23 +0200 Subject: [ FIX ] Fixed options to build with rust. Signed-off-by: Amlal El Mahrouss --- src/manifest_builder.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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() + " "; } - cmdLine += "-std=" + buildme["compiler_std"].get() + " "; + if (!buildme["compiler_std"].get().empty()) + cmdLine += "-std=" + buildme["compiler_std"].get() + " "; + cmdLine += "-o " + buildme["output_name"].get(); std::system(cmdLine.c_str()); -- cgit v1.2.3