set -gcodeview on Clang as well

since it works better there
This commit is contained in:
tildearrow 2024-02-03 18:11:04 -05:00
parent 1ea36ba13f
commit d7d6067d58
3 changed files with 17 additions and 11 deletions

View file

@ -918,17 +918,19 @@ set(USED_SOURCES ${ENGINE_SOURCES} ${AUDIO_SOURCES} ${CLI_SOURCES} src/main.cpp)
if (USE_BACKWARD) if (USE_BACKWARD)
list(APPEND USED_SOURCES src/backtrace.cpp) list(APPEND USED_SOURCES src/backtrace.cpp)
if (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if (WIN32)
include(CheckCXXCompilerFlag) if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
check_cxx_compiler_flag(-gcodeview GCC_CODEVIEW) include(CheckCXXCompilerFlag)
if (GCC_CODEVIEW) check_cxx_compiler_flag(-gcodeview GCC_CODEVIEW)
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--pdb= ") if (GCC_CODEVIEW)
add_compile_options(-gcodeview) set(CMAKE_EXE_LINKER_FLAGS "-Wl,--pdb= ")
message(STATUS "Enabling -gcodeview flag for backward-cpp.") add_compile_options(-gcodeview)
else() message(STATUS "Enabling -gcodeview flag for backward-cpp.")
message(WARNING "Could not enable -gcodeview! backward-cpp will not work.") else()
message(WARNING "Could not enable -gcodeview! backward-cpp will not work.")
endif()
list(APPEND DEPENDENCIES_LIBRARIES dbghelp psapi)
endif() endif()
list(APPEND DEPENDENCIES_LIBRARIES dbghelp psapi)
endif() endif()
find_library(EXECINFO_IS_LIBRARY execinfo) find_library(EXECINFO_IS_LIBRARY execinfo)
if (EXECINFO_IS_LIBRARY) if (EXECINFO_IS_LIBRARY)

View file

@ -84,6 +84,7 @@
#include "platform/pcmdac.h" #include "platform/pcmdac.h"
#include "platform/esfm.h" #include "platform/esfm.h"
#include "platform/powernoise.h" #include "platform/powernoise.h"
#include "platform/dave.h"
#include "platform/dummy.h" #include "platform/dummy.h"
#include "../ta-log.h" #include "../ta-log.h"
#include "song.h" #include "song.h"
@ -652,6 +653,9 @@ void DivDispatchContainer::init(DivSystem sys, DivEngine* eng, int chanCount, do
case DIV_SYSTEM_POWERNOISE: case DIV_SYSTEM_POWERNOISE:
dispatch=new DivPlatformPowerNoise; dispatch=new DivPlatformPowerNoise;
break; break;
case DIV_SYSTEM_DAVE:
dispatch=new DivPlatformDave;
break;
case DIV_SYSTEM_DUMMY: case DIV_SYSTEM_DUMMY:
dispatch=new DivPlatformDummy; dispatch=new DivPlatformDummy;
break; break;

View file

@ -1211,6 +1211,7 @@ const int availableSystems[]={
DIV_SYSTEM_ESFM, DIV_SYSTEM_ESFM,
DIV_SYSTEM_PONG, DIV_SYSTEM_PONG,
DIV_SYSTEM_POWERNOISE, DIV_SYSTEM_POWERNOISE,
DIV_SYSTEM_DAVE,
0 // don't remove this last one! 0 // don't remove this last one!
}; };
@ -1246,7 +1247,6 @@ const int chipsFM[]={
DIV_SYSTEM_OPL3_DRUMS, DIV_SYSTEM_OPL3_DRUMS,
DIV_SYSTEM_OPZ, DIV_SYSTEM_OPZ,
DIV_SYSTEM_ESFM, DIV_SYSTEM_ESFM,
DIV_SYSTEM_DAVE,
0 // don't remove this last one! 0 // don't remove this last one!
}; };