Merge pull request #289859 from trofi/goldberg-emu-gcc-13-fix

goldberg-emu: fix `gcc-13` build failure
This commit is contained in:
Weijia Wang 2024-02-24 23:53:36 +01:00 committed by GitHub
commit 03c8e7935e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,6 +19,11 @@ stdenv.mkDerivation rec {
# It attempts to install windows-only libraries which we never build
patches = [ ./dont-install-unsupported.patch ];
postPatch = ''
# Fix gcc-13 build failure due to missing <string> include.
sed -e '1i #include <string>' -i dll/settings.h
'';
nativeBuildInputs = [ cmake ];
buildInputs = [ protobuf ];