From bd7355470e2a1679809469bc2b32d8babbe56d16 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 4 Nov 2025 10:12:42 -0800 Subject: [PATCH] meson: replace target_machine with host_machine The latter is the canonical way to express this. Signed-off-by: Rosen Penev --- meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index baf235e..43277e1 100644 --- a/meson.build +++ b/meson.build @@ -220,8 +220,8 @@ if host_machine.system() == 'windows' endif # Compiler flags -message('target is ' + target_machine.system()) -if target_machine.system() == 'windows' +message('target is ' + host_machine.system()) +if host_machine.system() == 'windows' # Cover any compiler on Windows attempting to use MSVC's standard library add_project_arguments(['-D_CRT_NONSTDC_NO_DEPRECATE', '-D_CRT_SECURE_NO_WARNINGS'], language: 'c') endif @@ -269,7 +269,7 @@ install_headers( ) # Optional apps -if get_option('build_apps') and target_machine.system() != 'windows' +if get_option('build_apps') and host_machine.system() != 'windows' subdir('apps') endif