Skip to content

Commit 4c99e8a

Browse files
committed
Fix Windows/debug relocation section size
1 parent dc6e6e9 commit 4c99e8a

4 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/full-msmpi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
fail-fast: false
4949
matrix:
5050
version: ${{ fromJson(inputs.windows_versions || '[2025]') }}
51-
build-type: ${{ fromJson(inputs.build-types || '["release"]') }}
51+
build-type: ${{ fromJson(inputs.build-types || '["debug", "release"]') }}
5252

5353
name: Windows Server ${{ matrix.version }} ${{ matrix.build-type }} - ${{github.workflow}}
5454
runs-on: windows-${{ matrix.version }}

.github/workflows/minimal.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
fail-fast: false
9898
matrix:
9999
cfg:
100+
- {opts: --enable-debug}
100101
- {opts: --enable-optim --enable-generic}
101102

102103
name: Windows Server 2025 with ${{ matrix.cfg.opts }} - ${{ github.workflow }}

.github/workflows/sequential.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
fail-fast: false
9999
matrix:
100100
cfg:
101+
- {opts: --enable-debug}
101102
- {opts: --enable-optim --enable-generic}
102103

103104
name: Windows Server 2025 with ${{ matrix.cfg.opts }} - ${{github.workflow}}

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,14 @@ CYGWIN*|MINGW*|MSYS_NT*)
617617
CXXFLAGS="$CXXFLAGS -I/usr/include/mingw"
618618
CFLAGS="$CFLAGS -I/usr/include/mingw"
619619
CNOFLAGS="$CNOFLAGS -I/usr/include/mingw"
620+
if test "$enable_debug" = yes;
621+
then
622+
# Increase the COFF relocation section size. Adress
623+
# space isn't big enough otherwise.
624+
# See: https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#coff-relocations-object-only
625+
CXXFLAGS="$CXXFLAGS -Wa,-mbig-obj"
626+
CFLAGS="$CFLAGS -Wa,-mbig-obj"
627+
fi
620628
fi
621629

622630
LIBS="$LIBS -mthreads -lws2_32 -lcomdlg32"

0 commit comments

Comments
 (0)