diff options
| author | Amlal <amlal@nekernel.org> | 2025-08-11 23:31:39 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-08-11 23:31:39 +0200 |
| commit | d987d62459d59a6d95ffb815d5e6eccd8dbde1dd (patch) | |
| tree | d91d1351193a9f758daa9dad964e40f5a84ece7f /dev/src | |
| parent | 4c462511485168cfc831a1447267fd76145d5183 (diff) | |
meta: ran format command.v0.0.3-release
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/src')
| -rw-r--r-- | dev/src/JSONManifestBuilder.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/dev/src/JSONManifestBuilder.cc b/dev/src/JSONManifestBuilder.cc index 3b03bf8..33d7f62 100644 --- a/dev/src/JSONManifestBuilder.cc +++ b/dev/src/JSONManifestBuilder.cc @@ -5,7 +5,7 @@ #include <BuildKit/JSONManifestBuilder.h> -using JSON = nlohmann::json; +using JSON = nlohmann::json; namespace FS = std::filesystem; @@ -26,7 +26,8 @@ bool JSONManifestBuilder::BuildTarget(const std::string& argv_val, const bool dr path = argv_val; if (!FS::exists(path)) { - NeBuild::Logger::info() << "nebuild: error: file '" << path << "' does not exist" << std::endl; + NeBuild::Logger::info() << "nebuild: error: file '" << path << "' does not exist" + << std::endl; return false; } } @@ -35,7 +36,8 @@ bool JSONManifestBuilder::BuildTarget(const std::string& argv_val, const bool dr std::ifstream json(path); if (!json.good()) { - NeBuild::Logger::info() << "nebuild: error: file '" << path << "' is not a valid JSON" << std::endl; + NeBuild::Logger::info() << "nebuild: error: file '" << path << "' is not a valid JSON" + << std::endl; return false; } @@ -90,15 +92,16 @@ bool JSONManifestBuilder::BuildTarget(const std::string& argv_val, const bool dr auto ret_exec = std::system(command.c_str()); if (ret_exec > 0) { - NeBuild::Logger::info() << "error: exit with message: " << std::strerror(ret_exec) << "" << std::endl; + NeBuild::Logger::info() << "error: exit with message: " << std::strerror(ret_exec) << "" + << std::endl; return false; } try { if (json_obj["run_after_build"].get<bool>()) { if (target.ends_with(".so")) { - NeBuild::Logger::info() << "error: can't open dynamic library, it mayn't have an entrypoint" - << std::endl; + NeBuild::Logger::info() + << "error: can't open dynamic library, it mayn't have an entrypoint" << std::endl; return true; } else if (target.ends_with(".dylib") || target.ends_with(".dll")) { |
