rusticl: added

Initial code drop for Rusticl :)

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439>
This commit is contained in:
Karol Herbst
2020-11-08 20:28:21 +01:00
committed by Marge Bot
parent d431a01d9a
commit 20c90fed5a
51 changed files with 6768 additions and 19 deletions

View File

@@ -27,7 +27,7 @@ project(
).stdout(),
license : 'MIT',
meson_version : '>= 0.53',
default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++17']
default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++17', 'rust_std=2021']
)
# In recent versions, meson can inject some extra arguments to get richer
@@ -953,6 +953,21 @@ else
with_opencl_icd = false
endif
with_gallium_rusticl = get_option('gallium-rusticl')
if with_gallium_rusticl
if not with_gallium
error('rusticl requires at least one gallium driver.')
endif
if meson.version().version_compare('< 0.61.4')
error('rusticl requires meson 0.61.4 or newer')
endif
add_languages('rust', required: true)
with_clc = true
endif
dep_clc = null_dep
if with_libclc
dep_clc = dependency('libclc')