Skip to content

Commit efec79e

Browse files
kornelskighedo
authored andcommitted
Fix ABI tests on MinGW32
1 parent e432141 commit efec79e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/stable.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ jobs:
169169
strategy:
170170
matrix:
171171
target: ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc", "x86_64-pc-windows-gnu", "i686-pc-windows-gnu"]
172+
include:
173+
- target: "i686-pc-windows-gnu"
174+
cflags: "-mlong-double-64" # bindgen detects that Rust doesn't support 80-bit long double
175+
env:
176+
CFLAGS: ${{ matrix.cflags }}
177+
CXXFLAGS: ${{ matrix.cflags }}
178+
BINDGEN_EXTRA_CLANG_ARGS: ${{ matrix.cflags }}
172179
# Only run on "pull_request" event for external PRs. This is to avoid
173180
# duplicate builds for PRs created from internal branches.
174181
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

0 commit comments

Comments
 (0)