Skip to content
Snippets Groups Projects
Commit e190e702 authored by Christoph Reiter's avatar Christoph Reiter Committed by Jordan Petridis
Browse files

meson: skip the fallback for sysprof on Windows

Otherwise it will download the subproject and fail when trying to build
it since sysprof is Linux only.

Instead skip the fallback on Windows, so that if force-enabled it will
fail, but in auto mode it will just skip sysprof.


(cherry picked from commit 01e361fcb9a4775e98ce13bc7f0c56ac405e9d3a)
parent 36f23cc1
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,9 @@ libsysprof_capture_dep = dependency('sysprof-capture-4',
'with_sysprofd=none',
'help=false',
],
fallback: ['sysprof', 'libsysprof_capture_dep'],
# sysprof doesn't support Windows, so don't fall back to the subproject which fails to build,
# instead let it fail here so that sysprof gets skipped
fallback: (host_system != 'windows') ? ['sysprof', 'libsysprof_capture_dep'] : [],
)
cdata.set('HAVE_SYSPROF', libsysprof_capture_dep.found())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment