From 33872806a104f2991e513c4a961bd22e3ac42564 Mon Sep 17 00:00:00 2001 From: xtrm Date: Tue, 23 Apr 2024 20:33:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20chore(render=5Fcore.cpp):=20reve?= =?UTF-8?q?rt=20moving=20the=20warning=20to=20Makefile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 5 +---- src/renderer/core/render_core.cpp | 10 +++++++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index bbc8780..76af4e9 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: maldavid +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2022/10/04 16:43:41 by maldavid #+# #+# # -# Updated: 2024/04/23 20:20:33 by kiroussa ### ########.fr # +# Updated: 2024/04/23 20:32:32 by kiroussa ### ########.fr # # # # **************************************************************************** # @@ -101,9 +101,6 @@ $(NAME): $(OBJS) @printf "$(_BOLD)$(NAME)$(_RESET) compiled $(_GREEN)$(_BOLD)successfully$(_RESET)\n" _printbuildinfos: - @printf "$(_RED)$(_BOLD)Warning: $(_RESET)MLX is being compiled in $(MODE) mode.\n" - @printf "This activates $(_BOLD)Vulkan's validation layers$(_RESET) and $(_BOLD)MLX debug messages$(_RESET), which may impact rendering performances.\n\n" - @printf "Building $(_BOLD)$(NAME)$(_RESET) in $(_BOLD)$(MODE)$(_RESET) mode\n" @printf "\tOperating System: $(_BOLD)$(OS)$(_RESET)\n" @printf "\tCompiler: $(_BOLD)$(CXX)$(_RESET)\n" diff --git a/src/renderer/core/render_core.cpp b/src/renderer/core/render_core.cpp index c96e6d6..0a52b5c 100644 --- a/src/renderer/core/render_core.cpp +++ b/src/renderer/core/render_core.cpp @@ -6,7 +6,7 @@ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/12/17 23:33:34 by maldavid #+# #+# */ -/* Updated: 2024/04/23 20:09:14 by kiroussa ### ########.fr */ +/* Updated: 2024/04/23 20:32:54 by kiroussa ### ########.fr */ /* */ /* ************************************************************************** */ @@ -16,6 +16,14 @@ #include #include +#ifdef DEBUG + #ifdef MLX_COMPILER_MSVC + #pragma NOTE("MLX is being compiled in debug mode, this activates Vulkan's validation layers and debug messages which may impact rendering performances") + #else + #warning "MLX is being compiled in debug mode, this activates Vulkan's validation layers and debug messages which may impact rendering performances" + #endif +#endif + namespace mlx { namespace RCore