Skip to content

Commit

Permalink
Fixes crash handler for jenkins builds. (HarbourMasters#1445)
Browse files Browse the repository at this point in the history
* Fixes crash handler for jenkins builds.

We must include the pdb in redistributables.

* Properly selects PDB file path for inclusion

Co-authored-by: Christopher Leggett <[email protected]>
  • Loading branch information
Kenix3 and leggettc18 authored Sep 12, 2022
1 parent a9f3aed commit a2d4f47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion libultraship/libultraship/CrashHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ static void printStack(CONTEXT* ctx) {

process = GetCurrentProcess();
thread = GetCurrentThread();
SymInitialize(process, nullptr, true);

SymSetOptions(SYMOPT_NO_IMAGE_SEARCH | SYMOPT_IGNORE_IMAGEDIR);
SymInitialize(process, "debug", true);


constexpr DWORD machineType =
Expand Down
6 changes: 5 additions & 1 deletion soh/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1992,6 +1992,10 @@ if(NOT CMAKE_SYSTEM_NAME MATCHES "NintendoSwitch|CafeOS")
INSTALL(TARGETS soh DESTINATION . COMPONENT ship)
endif()

if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
INSTALL(FILES $<TARGET_PDB_FILE:soh> DESTINATION ./debug COMPONENT ship)
endif()

find_program(CURL NAMES curl DOC "Path to the curl program. Used to download files.")
execute_process(COMMAND ${CURL} -sSfL https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt -o ${CMAKE_BINARY_DIR}/gamecontrollerdb.txt OUTPUT_VARIABLE RESULT)

Expand All @@ -2015,7 +2019,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "NintendoSwitch")
nx_generate_nacp(Ship.nacp
NAME "Ship of Harkinian"
AUTHOR "Harbour Masters"
VERSION "3.1.0"
VERSION "4.0.0"
)

nx_create_nro(soh
Expand Down

0 comments on commit a2d4f47

Please sign in to comment.