From: Ivan Maidanski Date: Mon, 22 Jul 2019 06:53:32 +0000 (+0300) Subject: Compile msvc_dbg.c by CMake script (MS VC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=065352460827f04f9a983ac1ccb14782d0d9b5ad;p=gc Compile msvc_dbg.c by CMake script (MS VC) * CMakeLists.txt [MSVC] (SRC): Add extra/msvc_dbg.c; add comment. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a8806602..1285a4f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -290,6 +290,11 @@ elseif (BORLAND) add_compile_options(/w-use) endif() +# Add implementation of backtrace() and backtrace_symbols(). +if (MSVC) + set(SRC ${SRC} extra/msvc_dbg.c) +endif() + if (BUILD_SHARED_LIBS) add_definitions("-DGC_DLL") else()