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,7 +918,8 @@ 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)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
include(CheckCXXCompilerFlag) include(CheckCXXCompilerFlag)
check_cxx_compiler_flag(-gcodeview GCC_CODEVIEW) check_cxx_compiler_flag(-gcodeview GCC_CODEVIEW)
if (GCC_CODEVIEW) if (GCC_CODEVIEW)
@ -930,6 +931,7 @@ if (USE_BACKWARD)
endif() endif()
list(APPEND DEPENDENCIES_LIBRARIES dbghelp psapi) list(APPEND DEPENDENCIES_LIBRARIES dbghelp psapi)
endif() endif()
endif()
find_library(EXECINFO_IS_LIBRARY execinfo) find_library(EXECINFO_IS_LIBRARY execinfo)
if (EXECINFO_IS_LIBRARY) if (EXECINFO_IS_LIBRARY)
list(APPEND DEPENDENCIES_LIBRARIES execinfo) list(APPEND DEPENDENCIES_LIBRARIES execinfo)

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!
}; };