From d4daf852b872e3cc898975ab1f4ca6faa7099d87 Mon Sep 17 00:00:00 2001 From: muit Date: Fri, 13 Dec 2024 17:19:50 +0100 Subject: [PATCH] Fixed Backend reflection --- CMake/Util.cmake | 1 + Extern/Pipe | 2 +- Libs/AST/Include/Compiler/Backend.h | 2 +- Libs/Backends/MIR/Compiler/Include/MIRBackendModule.h | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMake/Util.cmake b/CMake/Util.cmake index e4d2a97d..0d3cf469 100644 --- a/CMake/Util.cmake +++ b/CMake/Util.cmake @@ -4,6 +4,7 @@ function(rift_module target) pipe_target_define_platform(${target}) pipe_target_shared_output_directory(${target}) pipe_target_enable_CPP20(${target}) + pipe_target_disable_rtti(${target} PRIVATE) set_target_properties(${target} PROPERTIES FOLDER Rift) endfunction(rift_module) diff --git a/Extern/Pipe b/Extern/Pipe index f4800f4d..ff33f777 160000 --- a/Extern/Pipe +++ b/Extern/Pipe @@ -1 +1 @@ -Subproject commit f4800f4d11a315770524e5da62e237a2d2d7aee6 +Subproject commit ff33f777a8260e1b3ba1ad04dc7e43a0b6b8bcb3 diff --git a/Libs/AST/Include/Compiler/Backend.h b/Libs/AST/Include/Compiler/Backend.h index 68d0ec76..18940865 100644 --- a/Libs/AST/Include/Compiler/Backend.h +++ b/Libs/AST/Include/Compiler/Backend.h @@ -11,10 +11,10 @@ namespace rift { class Backend : public p::Object { + public: using Super = p::Object; P_CLASS(Backend) - public: virtual p::Tag GetName() { return p::Tag::None(); diff --git a/Libs/Backends/MIR/Compiler/Include/MIRBackendModule.h b/Libs/Backends/MIR/Compiler/Include/MIRBackendModule.h index 95a13f1d..7def1abf 100644 --- a/Libs/Backends/MIR/Compiler/Include/MIRBackendModule.h +++ b/Libs/Backends/MIR/Compiler/Include/MIRBackendModule.h @@ -24,6 +24,7 @@ namespace rift class MIRBackend : public Backend { + public: using Super = Backend; P_CLASS(MIRBackend)