]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
meson: replace target_machine with host_machine
authorRosen Penev <rosenp@gmail.com>
Tue, 4 Nov 2025 18:12:42 +0000 (10:12 -0800)
committerRosen Penev <rosenp@gmail.com>
Tue, 4 Nov 2025 18:45:20 +0000 (10:45 -0800)
The latter is the canonical way to express this.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
meson.build

index baf235edfaa88e38e2ad0f4fa35eafe011c8015d..43277e11062e2113c5e7867a660640bf1849ec8c 100644 (file)
@@ -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