Skip to content
Open
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
6 changes: 5 additions & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
cd build

echo "::group::CMake"
cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake ${{ matrix.extra-cmake-parameters }}
cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake ${{ matrix.extra-cmake-parameters }} -DCMAKE_BUILD_TYPE=RelWithDebInfo
echo "::endgroup::"

echo "::group::Build"
Expand Down Expand Up @@ -247,6 +247,8 @@ jobs:
-DCMAKE_OSX_ARCHITECTURES=${{ matrix.full_arch }} \
-DVCPKG_TARGET_TRIPLET=${{ matrix.arch }}-osx \
-DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON \
# EOF
echo "::endgroup::"

Expand Down Expand Up @@ -320,6 +322,7 @@ jobs:
-GNinja \
-DVCPKG_TARGET_TRIPLET=${{ matrix.arch }}-windows-static \
-DCMAKE_TOOLCHAIN_FILE="c:\vcpkg\scripts\buildsystems\vcpkg.cmake" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
# EOF
echo "::endgroup::"

Expand Down Expand Up @@ -398,6 +401,7 @@ jobs:
cmake .. \
-GNinja \
-DCMAKE_CXX_FLAGS="-fuse-ld=lld" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
# EOF
echo "::endgroup::"

Expand Down
2 changes: 2 additions & 0 deletions src/3rdparty/squirrel/squirrel/sqstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
*/

#include "../../../stdafx.h"
#pragma message(XSTR(assert(true)))

#include "sqpcheader.h"
#pragma message(XSTR(assert(true)))
#include "sqopcodes.h"
#include "sqvm.h"
#include "sqfuncproto.h"
Expand Down
2 changes: 2 additions & 0 deletions src/order_cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
/** @file order_cmd.cpp Handling of orders. */

#include "stdafx.h"
#pragma message(XSTR(assert(true)))
#include "debug.h"
#pragma message(XSTR(assert(true)))
#include "command_func.h"
#include "company_func.h"
#include "news_func.h"
Expand Down
9 changes: 9 additions & 0 deletions src/road.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,23 @@
#ifndef ROAD_H
#define ROAD_H

#pragma message(XSTR(assert(true)))
#include "road_type.h"
#pragma message(XSTR(assert(true)))
#include "gfx_type.h"
#pragma message(XSTR(assert(true)))
#include "core/bitmath_func.hpp"
#pragma message(XSTR(assert(true)))
#include "strings_type.h"
#pragma message(XSTR(assert(true)))
#include "timer/timer_game_calendar.h"
#pragma message(XSTR(assert(true)))
#include "core/enum_type.hpp"
#pragma message(XSTR(assert(true)))
#include "newgrf.h"
#pragma message(XSTR(assert(true)))
#include "economy_func.h"
#pragma message(XSTR(assert(true)))


enum RoadTramType : bool {
Expand Down
3 changes: 3 additions & 0 deletions src/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ void NORETURN AssertFailedError(int line, const char *file, const char *expressi
# define assert(expression) if (unlikely(!(expression))) AssertFailedError(__LINE__, __FILE__, #expression);
#endif

#define XSTR(x) STR(x)
#define STR(x) #x

/* Define JSON_ASSERT, which is used by nlohmann-json. Otherwise the header-file
* will re-include assert.h, and reset the assert macro. */
#define JSON_ASSERT(x) assert(x)
Expand Down
2 changes: 2 additions & 0 deletions src/town_cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
/** @file town_cmd.cpp Handling of town tiles. */

#include "stdafx.h"
#pragma message(XSTR(assert(true)))
#include "road.h"
#pragma message(XSTR(assert(true)))
#include "road_internal.h" /* Cleaning up road bits */
#include "road_cmd.h"
#include "landscape.h"
Expand Down