From 1fd88bee60ac098077640b07b7530255171dc09b Mon Sep 17 00:00:00 2001 From: Aetias Date: Sat, 23 Nov 2024 17:38:04 +0100 Subject: [PATCH] Set language to C++ when exportign to decomp.me --- tools/configure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/configure.py b/tools/configure.py index 508cfef6..dbfb4f16 100644 --- a/tools/configure.py +++ b/tools/configure.py @@ -28,6 +28,7 @@ CC_FLAGS = " ".join([ "-gccext,on", # Enable GCC extensions "-fp soft", # Compute float operations in software "-inline on,noauto", # Inline only functions marked with 'inline' + "-lang=c++", # Set language to C++ "-Cpp_exceptions off", # Disable C++ exceptions "-RTTI off", # Disable runtime type information "-interworking", # Enable ARM/Thumb interworking @@ -47,7 +48,7 @@ LD_FLAGS = " ".join([ DSD_OBJDIFF_ARGS = " ".join([ "--scratch", # Metadata for creating decomp.me scratches f"--compiler {DECOMP_ME_COMPILER}", # decomp.me compiler name - f'--c-flags "{CC_FLAGS}"', # decomp.me compiler flags + f'--c-flags "{CC_FLAGS} -lang=c++"',# decomp.me compiler flags "--custom-make ninja", # Command for rebuilding files ])