From 33260f316fefb59ebdb8b3c4af4ef18ffbd071f2 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Wed, 4 Dec 2024 15:14:56 +0100 Subject: [PATCH] yes --- .gitignore | 1 + Makefile | 7 ++++--- runtime/Sources/Renderer/Memory.cpp | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 5227471..82d65a8 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ *.ilk *.pdb *.gch +*.pch *.exe *vgcore *.gdb_history diff --git a/Makefile b/Makefile index cc39693..b08d23b 100644 --- a/Makefile +++ b/Makefile @@ -31,19 +31,20 @@ CXX = clang++ CXXFLAGS = -std=c++20 -fPIC -Wall -Wextra -DSDL_MAIN_HANDLED INCLUDES = -I./includes -I./runtime/Includes -I./runtime/Sources -I./third_party -CXXPCHFLAGS = +CXXPCHFLAGS = -xc++-header PCH = runtime/Includes/PreCompiled.h -GCH = runtime/Includes/PreCompiled.h.gch +GCH = NZSLC = nzslc ifeq ($(TOOLCHAIN), gcc) CXX = g++ + GCH = runtime/Includes/PreCompiled.h.gch CXXFLAGS += -Wno-error=cpp else + GCH = runtime/Includes/PreCompiled.h.pch CXXFLAGS += -Wno-error=#warning -include-pch $(GCH) - CXXPCHFLAGS = -xc++-header endif ifeq ($(OS), Darwin) diff --git a/runtime/Sources/Renderer/Memory.cpp b/runtime/Sources/Renderer/Memory.cpp index 4f16f5a..6243bab 100644 --- a/runtime/Sources/Renderer/Memory.cpp +++ b/runtime/Sources/Renderer/Memory.cpp @@ -1,5 +1,4 @@ #include - #define VMA_IMPLEMENTATION #ifdef MLX_COMPILER_CLANG #pragma clang diagnostic push