1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
3 Date: Mon, 6 Jun 2022 00:29:08 +0200
4 Subject: [PATCH] meson: Allow building with system orc
7 meson.build | 8 +++++++-
8 1 file changed, 7 insertions(+), 1 deletion(-)
10 diff --git a/meson.build b/meson.build
11 index 617ba8a41461..509565e90891 100644
14 @@ -112,7 +112,13 @@ elif build_system == 'darwin'
15 subproject('macos-bison-binary')
18 -orc_subproject = subproject('orc', required: get_option('orc'))
19 +orc_subproject_required = get_option('orc')
20 +if orc_subproject_required.allowed()
21 + # Download if possible, otherwise use system orc
22 + orc_subproject_required = false
25 +orc_subproject = subproject('orc', required: orc_subproject_required)
27 foreach custom_subproj: get_option('custom_subprojects').split(',')
28 if custom_subproj != ''