mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
meson: Allow building intel-clc for the host if it can be run
In what is probably the most common case cross of compilation, x86_64 -> x86, it should be possible to build intel-clc for the host machine and run it. Doing so simplifies the build by not needing to be able to cross compile half of mesa, and should ease developer and distro strain for building Intel drivers for x86. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28222>
This commit is contained in:
parent
098136e52a
commit
477943cc9d
1 changed files with 4 additions and 1 deletions
|
|
@ -181,7 +181,10 @@ elif with_intel_clc
|
|||
link_args : [ld_args_build_id],
|
||||
dependencies : [idep_nir, idep_vtn, idep_mesaclc, idep_mesautil, idep_intel_dev,
|
||||
idep_intel_compiler_brw],
|
||||
native : true,
|
||||
# If we can run host binaries directly, just build intel_clc for the host.
|
||||
# Most commonly this happens when doing a cross compile from an x86_64 build
|
||||
# machine to an x86 host
|
||||
native : not meson.can_run_host_binaries(),
|
||||
install : get_option('install-intel-clc'),
|
||||
)
|
||||
dep_prog_intel_clc = [prog_intel_clc]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue