mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-19 18:03:56 +02:00
Prevent building VST3 support on old Wine versions
Those builds will segfault because of an interaction between those version of Wine's winelib support and the `CoCreateGuid` function.
This commit is contained in:
+13
@@ -73,6 +73,19 @@ if wine_version.returncode() == 0 and \
|
|||||||
compiler_options += '-DWINE_USE_CDECL'
|
compiler_options += '-DWINE_USE_CDECL'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Wine versions below 5.7 will segfault in `CoCreateGuid` which gets called
|
||||||
|
# during static initialization. I'm not exactly sure why this is happening, but
|
||||||
|
# to prevent this from causing more headaches and confusion in the future we
|
||||||
|
# should just immediately error out when building yabridge's VST3 support with
|
||||||
|
# these older Wine versions.
|
||||||
|
if wine_version.returncode() == 0 and \
|
||||||
|
wine_version.stdout().version_compare('<5.7') and \
|
||||||
|
with_vst3
|
||||||
|
error('Because of a bug in Wine < 5.7\n' +
|
||||||
|
'you cannot build yabridge with VST3 support using these older Wine versions.\n\n' +
|
||||||
|
'https://github.com/robbert-vdh/yabridge/issues/63#issuecomment-757369645')
|
||||||
|
endif
|
||||||
|
|
||||||
# Generate header files for configuration variables such as the current git tag
|
# Generate header files for configuration variables such as the current git tag
|
||||||
# and the name of the host binary
|
# and the name of the host binary
|
||||||
subdir('src/common/config')
|
subdir('src/common/config')
|
||||||
|
|||||||
Reference in New Issue
Block a user