Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: More miscellaneous fixes #1811

Merged
merged 6 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Push
on:
push:
branches: [ master ]
branches: [ '*' ]
tags: [ 'v*' ]
concurrency:
group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}'
Expand Down
42 changes: 21 additions & 21 deletions ares/n64/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,25 +57,25 @@ ares_add_sources(

ares_add_sources(
CORE #
n64
n64
INCLUDED #
aleck64/aleck64.hpp
aleck64/controls.cpp
aleck64/debugger.cpp
aleck64/serialization.cpp
aleck64/io.cpp
aleck64/vdp.cpp
aleck64/game-config/11beat.hpp
aleck64/game-config/doncdoon.hpp
aleck64/game-config/kurufev.hpp
aleck64/game-config/mayjin3.hpp
aleck64/game-config/starsldr.hpp
aleck64/game-config/twrshaft.hpp
aleck64/game-config/vivdolls.hpp
aleck64/game-config/hipai.hpp
aleck64/game-config/hipai2.hpp
aleck64/game-config/srmvs.hpp
aleck64/game-config/mtetrisc.hpp
aleck64/aleck64.hpp
aleck64/controls.cpp
aleck64/debugger.cpp
aleck64/serialization.cpp
aleck64/io.cpp
aleck64/vdp.cpp
aleck64/game-config/11beat.hpp
aleck64/game-config/doncdoon.hpp
aleck64/game-config/kurufev.hpp
aleck64/game-config/mayjin3.hpp
aleck64/game-config/starsldr.hpp
aleck64/game-config/twrshaft.hpp
aleck64/game-config/vivdolls.hpp
aleck64/game-config/hipai.hpp
aleck64/game-config/hipai2.hpp
aleck64/game-config/srmvs.hpp
aleck64/game-config/mtetrisc.hpp
)

ares_add_sources(
Expand Down Expand Up @@ -114,10 +114,10 @@ ares_add_sources(

ares_add_sources(
CORE #
n64
n64
INCLUDED #
controller/aleck64/aleck64.cpp
controller/aleck64/aleck64.hpp
controller/aleck64/aleck64.cpp
controller/aleck64/aleck64.hpp
)

ares_add_sources(
Expand Down
2 changes: 1 addition & 1 deletion cmake/common/compiler_common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ set(
-Wno-delete-non-abstract-non-virtual-dtor
)

set(_ares_gcc_common_options -fwrapv -fno-strict-aliasing -Wno-unused-result)
set(_ares_gcc_common_options -fwrapv -fno-strict-aliasing -Wno-unused-result -Wno-stringop-overflow)

if(NOT DEFINED CMAKE_COMPILE_WARNING_AS_ERROR)
set(CMAKE_COMPILE_WARNING_AS_ERROR OFF)
Expand Down
27 changes: 25 additions & 2 deletions cmake/windows/compilerconfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ endif()

add_compile_definitions(_WIN32_WINNT=0x0601) #global

option(
ARES_MINGW_USE_DWARF_SYMBOLS
"Generate DWARF debug symbols (instead of CodeView) for use with gdb or lldb. Applies to MSYS2/MinGW environments."
)

set(
_ares_msvc_cxx_options
/W2
Expand Down Expand Up @@ -88,8 +93,16 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_link_options(-static-libstdc++)

# msys2/mingw-specific invocations to make clang emit debug symbols
set(_ares_mingw_clang_debug_compile_options -g -gcodeview)
set(_ares_mingw_clang_debug_link_options -fuse-ld=lld -g -Wl,--pdb=)
if(NOT DEFINED ARES_MINGW_USE_DWARF_SYMBOLS)
set(ARES_MINGW_USE_DWARF_SYMBOLS OFF)
endif()

set(_ares_mingw_clang_debug_compile_options -g "$<IF:$<BOOL:${ARES_MINGW_USE_DWARF_SYMBOLS}>,-gdwarf,-gcodeview>")
set(
_ares_mingw_clang_debug_link_options
-g
"$<IF:$<BOOL:${ARES_MINGW_USE_DWARF_SYMBOLS}>,-gdwarf,-fuse-ld=lld;-Wl$<COMMA>--pdb=>"
)
add_compile_options("$<$<CONFIG:Debug,RelWithDebInfo>:${_ares_mingw_clang_debug_compile_options}>")
add_link_options("$<$<CONFIG:Debug,RelWithDebInfo>:${_ares_mingw_clang_debug_link_options}>")

Expand Down Expand Up @@ -119,10 +132,20 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_compile_options("$<$<COMPILE_LANGUAGE:C,CXX>:${_ares_msvc_cxx_options}>")

if(CMAKE_COMPILE_WARNING_AS_ERROR)
add_link_options(/WX)
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(NOT DEFINED ARES_MINGW_USE_DWARF_SYMBOLS)
set(ARES_MINGW_USE_DWARF_SYMBOLS ON)
endif()

set(_ares_mingw_gcc_debug_compile_options -g "$<IF:$<BOOL:${ARES_MINGW_USE_DWARF_SYMBOLS}>,-gdwarf,-gcodeview>")
set(_ares_mingw_gcc_debug_link_options -g "$<IF:$<BOOL:${ARES_MINGW_USE_DWARF_SYMBOLS}>,-gdwarf,-Wl$<COMMA>--pdb=>")
add_compile_options("$<$<CONFIG:Debug,RelWithDebInfo>:${_ares_mingw_gcc_debug_compile_options}>")
add_link_options("$<$<CONFIG:Debug,RelWithDebInfo>:${_ares_mingw_gcc_debug_link_options}>")

add_compile_options(${_ares_gcc_common_options})
endif()

Expand Down
1 change: 1 addition & 0 deletions desktop-ui/cmake/sources.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ target_sources(
program/program.hpp
program/rewind.cpp
program/states.cpp
program/status.cpp
program/utility.cpp
)

Expand Down
1 change: 0 additions & 1 deletion hiro/cmake/os-linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ mark_as_advanced(USE_QT5)

if(NOT USE_QT5)
find_package(GTK REQUIRED)
target_compile_definitions(hiro PRIVATE HIRO_GTK)

target_link_libraries(hiro PRIVATE GTK::GTK X11::X11)

Expand Down
6 changes: 1 addition & 5 deletions thirdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ add_library(sljit STATIC sljit/sljit_src/sljitLir.c)

target_include_directories(sljit PUBLIC ../thirdparty)
target_compile_definitions(sljit PUBLIC SLJIT_HAVE_CONFIG_PRE=1 SLJIT_HAVE_CONFIG_POST=1)
target_compile_options(
sljit
PRIVATE
$<$<COMPILE_LANG_AND_ID:C,AppleClang,Clang,GNU>:-Wno-conditional-uninitialized>
)
target_compile_options(sljit PRIVATE $<$<COMPILE_LANG_AND_ID:C,AppleClang,Clang,GNU>:-Wno-conditional-uninitialized>)

# lzma
add_subdirectory(libchdr/deps/lzma-24.05 EXCLUDE_FROM_ALL)
Expand Down
Loading