| 1 |
# Copyright 2017 Intel Corporation |
| 2 |
# SPDX-License-Identifier: MIT |
| 3 |
|
| 4 |
if get_option('precomp-compiler') == 'system' |
| 5 |
prog_asahi_clc = find_program('asahi_clc', native : true) |
| 6 |
else |
| 7 |
prog_asahi_clc = executable( |
| 8 |
'asahi_clc', |
| 9 |
['asahi_clc.c'], |
| 10 |
link_with : [libasahi_compiler], |
| 11 |
include_directories : [inc_include, inc_src], |
| 12 |
c_args : [pre_args, no_override_init_args], |
| 13 |
link_args : [ld_args_build_id], |
| 14 |
dependencies : [idep_vtn, idep_nir, idep_mesautil], |
| 15 |
# If we can run host binaries directly, just build asahi_clc for the host. |
| 16 |
# Most commonly this happens when doing a cross compile from an x86_64 build |
| 17 |
# machine to an x86 host |
| 18 |
native : not meson.can_run_host_binaries(), |
| 19 |
install : get_option('install-precomp-compiler'), |
| 20 |
) |
| 21 |
endif |