void-packages/srcpkgs/renderdoc/patches/dostringise.patch

33 lines
957 B
Diff

From: Jordan Justen <jordan.l.justen@intel.com>
Date: Fri, 24 Jul 2020 15:36:34 -0700
Subject: renderdoc/serialise: Add DoStringise(const long &el) for 32-bit x86
on GCC
linux_process.cpp was generating linker errors:
undefined reference to `rdcstr DoStringise<long>(long const&)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
---
renderdoc/serialise/serialiser.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/renderdoc/serialise/serialiser.cpp b/renderdoc/serialise/serialiser.cpp
index 460a310..9e53fb1 100644
--- renderdoc/serialise/serialiser.cpp
+++ renderdoc/serialise/serialiser.cpp
@@ -937,6 +937,14 @@ rdcstr DoStringise(const int16_t &el)
return StringFormat::Fmt("%hd", el);
}
+#if ENABLED(RDOC_LINUX) && ENABLED(RDOC_X86_FAMILY) && DISABLED(RDOC_X64)
+template <>
+rdcstr DoStringise(const long &el)
+{
+ return StringFormat::Fmt("%l", el);
+}
+#endif
+
template <>
rdcstr DoStringise(const float &el)
{