target/hexagon: Only indent on linux

indent on macOS, installed via homebrew, doesn't support -linux. Only
run indent on linux hosts.

Signed-off-by: Anton Johansson <anjo@rev.ng>
Reviewed-by: Brian Cain <brian.cain@oss.qualcomm.com>
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
This commit is contained in:
Anton Johansson 2025-04-02 13:42:59 +02:00 committed by Brian Cain
parent e01046a140
commit f97700e075

View file

@ -324,7 +324,7 @@ if idef_parser_enabled and 'hexagon-linux-user' in target_dirs
) )
indent = find_program('indent', required: false) indent = find_program('indent', required: false)
if indent.found() if indent.found() and host_os == 'linux'
idef_generated_tcg_c = custom_target( idef_generated_tcg_c = custom_target(
'indent', 'indent',
input: idef_generated_tcg[0], input: idef_generated_tcg[0],