summaryrefslogtreecommitdiffhomepage
path: root/include/NeBuildKit/Detail
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-08 13:42:13 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-08 13:42:13 +0100
commit7a469801ecb55fcde0199d4e41b1cec3a17dcb05 (patch)
treece6e96aeba5fa93ce6ac41c8850195de388f20fb /include/NeBuildKit/Detail
parent28900729985e6e251e8f1f6e419db8cb5c0e741e (diff)
[CHORE] Patch command-line nebuild for multiple targets.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/NeBuildKit/Detail')
-rw-r--r--include/NeBuildKit/Detail/Config.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/NeBuildKit/Detail/Config.h b/include/NeBuildKit/Detail/Config.h
index e292fbe..4e7088d 100644
--- a/include/NeBuildKit/Detail/Config.h
+++ b/include/NeBuildKit/Detail/Config.h
@@ -1,6 +1,6 @@
// ============================================================= //
// NeBuild
-// Copyright (C) 2024-2025, Amlal El Mahrouss and NeKernel Authors, licensed under BSD-3 license.
+// Copyright (C) 2024-2026, Amlal El Mahrouss and NeKernel Authors, licensed under BSD-3 license.
// ============================================================= //
#pragma once
@@ -42,13 +42,13 @@ struct BuildConfig final {
explicit operator bool() { return has_failed_; }
bool dry_run() { return dry_run_; }
- void dry_run(const bool dr) { dry_run_ = dr; }
+ void dry_run(const bool& dr) { dry_run_ = dr; }
bool has_failed() { return has_failed_; }
- void has_failed(const bool dr) { has_failed_ = dr; }
+ void has_failed(const bool& dr) { has_failed_ = dr; }
const std::string& path() { return path_; }
- void path(const std::string& pat) { path_ = pat; }
+ void path(const std::string& path) { path_ = path; }
BuildConfig() = default;
~BuildConfig() = default;
@@ -57,6 +57,7 @@ struct BuildConfig final {
/// \brief Logger namespace.
namespace NeBuild::Logger {
+
/// @brief replacement for std::cout for NeBuild logging.
/// @todo change this to spdlog?
inline std::ostream& info() noexcept {
@@ -64,4 +65,5 @@ inline std::ostream& info() noexcept {
out << rang::fg::red << "nebuild: " << rang::style::reset;
return out;
}
+
} // namespace NeBuild::Logger