Skip to content

Commit

Permalink
Add PDBs to pure release builds without extra RelWithDebInfo sections
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 1, 2024
1 parent 1e16338 commit b94f9bf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ endif()

add_compile_options($<$<CXX_COMPILER_ID:MSVC>:/MP>)

# Enable PDB generation in release mode, but without the extra crap that RelWithDebInfo adds
add_compile_options("$<$<CONFIG:Release>:/Zi>")
add_link_options("$<$<CONFIG:Release>:/DEBUG>")
add_link_options("$<$<CONFIG:Release>:/OPT:REF>")
add_link_options("$<$<CONFIG:Release>:/OPT:ICF>")

project(uevr-proj)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
Expand Down
6 changes: 6 additions & 0 deletions cmake.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
name = "uevr-proj"
cmake-before="""
add_compile_options($<$<CXX_COMPILER_ID:MSVC>:/MP>)
# Enable PDB generation in release mode, but without the extra crap that RelWithDebInfo adds
add_compile_options("$<$<CONFIG:Release>:/Zi>")
add_link_options("$<$<CONFIG:Release>:/DEBUG>")
add_link_options("$<$<CONFIG:Release>:/OPT:REF>")
add_link_options("$<$<CONFIG:Release>:/OPT:ICF>")
"""
cmake-after = """
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
Expand Down
4 changes: 2 additions & 2 deletions src/CommitHash.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once
#define UEVR_COMMIT_HASH "52aca1a46d889a2fa3c4cab2af2964b0e8ec0e1c"
#define UEVR_BUILD_DATE "24.02.2024"
#define UEVR_COMMIT_HASH "1ea27b69c5965c56bb2fd43bf9a428fedda937a3"
#define UEVR_BUILD_DATE "01.03.2024"
#define UEVR_BUILD_TIME "00:00"

0 comments on commit b94f9bf

Please sign in to comment.