mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-15 00:28:28 +02:00
Merge branch 'kk-cross-compile' into 'main'
kk: Respect precomp-compiler options when setting up kk_clc See merge request mesa/mesa!42221
This commit is contained in:
commit
3622683ccb
1 changed files with 16 additions and 9 deletions
|
|
@ -2,12 +2,19 @@
|
||||||
# Copyright 2026 Google LLC
|
# Copyright 2026 Google LLC
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
prog_kk_clc = executable(
|
if get_option('precomp-compiler') == 'system'
|
||||||
'kk_clc',
|
prog_kk_clc = find_program('kk_clc', native : true)
|
||||||
['kk_clc.c'],
|
else
|
||||||
link_with : [libmsl_compiler],
|
prog_kk_clc = executable(
|
||||||
include_directories : [inc_include, inc_src],
|
'kk_clc',
|
||||||
c_args : [pre_args, no_override_init_args],
|
['kk_clc.c'],
|
||||||
link_args : [ld_args_build_id],
|
link_with : [libmsl_compiler],
|
||||||
dependencies : [idep_vtn, idep_nir, idep_mesautil],
|
include_directories : [inc_include, inc_src],
|
||||||
)
|
c_args : [pre_args, no_override_init_args],
|
||||||
|
link_args : [ld_args_build_id],
|
||||||
|
dependencies : [idep_vtn, idep_nir, idep_mesautil],
|
||||||
|
# If we can run host binaries directly, just build kk_clc for the host.
|
||||||
|
native : not meson.can_run_host_binaries(),
|
||||||
|
install : get_option('install-precomp-compiler'),
|
||||||
|
)
|
||||||
|
endif
|
||||||
Loading…
Add table
Reference in a new issue