[Volk, Backward-cpp, VulkanMemoryAllocator] Add mingw support (#1223)
* [Volk, Backward-cpp, VulkanMemoryAllocator] Add mingw support * [Backward-cpp] Fix missing link to imagehlp on mingw platform * [Backward-cpp] Fix patch hash * [Backward-cpp] Fix __imp__set_abort_behavior link error * [Backward-cpp] Fix compilation on mingw 32bitspull/1226/head
parent
a688c9b6f2
commit
41c1977ff8
5 changed files with 40 additions and 3 deletions
@ -0,0 +1,17 @@ |
||||
diff -Naurw backward.hpp backward.hpp
|
||||
--- backward.hpp
|
||||
+++ backward.hpp
|
||||
@@ -344,7 +344,12 @@
|
||||
#include <thread>
|
||||
|
||||
#include <basetsd.h>
|
||||
+
|
||||
+#ifdef _WIN64
|
||||
typedef SSIZE_T ssize_t;
|
||||
+#else
|
||||
+typedef int ssize_t;
|
||||
+#endif
|
||||
|
||||
#ifndef NOMINMAX
|
||||
#define NOMINMAX
|
||||
|
@ -0,0 +1,11 @@ |
||||
diff -Naurw CMakeLists.txt CMakeLists.txt
|
||||
--- CMakeLists.txt
|
||||
+++ CMakeLists.txt
|
||||
@@ -86,6 +86,7 @@
|
||||
add_library(backward ${libtype} backward.cpp)
|
||||
target_compile_definitions(backward PUBLIC ${BACKWARD_DEFINITIONS})
|
||||
target_include_directories(backward PUBLIC ${BACKWARD_INCLUDE_DIRS})
|
||||
+target_link_libraries(backward PUBLIC -limagehlp -lmsvcr110 -ldbghelp)
|
||||
|
||||
###############################################################################
|
||||
# TESTS
|
Loading…
Reference in new issue