Skip to content

Commit 24bb419

Browse files
committed
[meson] fix: compare against lower case host system name *really* everywhere
macOS arm64 binary wheels were compiled without CoreMIDI support, because host machine value is 'Darwin', not 'darwin' when cross-compiling in current version of meson-python Signed-off-by: Christopher Arndt <[email protected]>
1 parent 285aba5 commit 24bb419

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ else
6969
endif # Platform detection
7070

7171
jack_support = jack_dep.found() and get_option('jack')
72-
alsa_support = host_machine.system() == 'linux' and alsa_dep.found() and get_option('alsa')
73-
coremidi_support = host_machine.system() == 'darwin' and coremidi_dep.found() and get_option('coremidi')
74-
winmm_support = host_machine.system() == 'windows' and winmm_dep.found() and get_option('winmm')
72+
alsa_support = host_machine.system().to_lower() == 'linux' and alsa_dep.found() and get_option('alsa')
73+
coremidi_support = host_machine.system().to_lower() == 'darwin' and coremidi_dep.found() and get_option('coremidi')
74+
winmm_support = host_machine.system().to_lower() == 'windows' and winmm_dep.found() and get_option('winmm')
7575

7676
threads_dep = dependency('threads', required: alsa_support or jack_support)
7777
have_semaphore = cpp.has_header('semaphore.h')

0 commit comments

Comments
 (0)