aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-05-13 23:22:31 +0200
committerThomas White <taw@physics.org>2019-05-16 15:15:49 +0200
commit86deffead3007966fc2a7f546ad6f6db299e9bf5 (patch)
treeb462cf32c10c29657f3551cda776eb2dc6b41a2b
parentda003219abf27766aec78013d5036e08fef76a58 (diff)
Add TARGET_ALIAS
-rw-r--r--meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 8163dd9f..3a5452bf 100644
--- a/meson.build
+++ b/meson.build
@@ -66,7 +66,10 @@ add_project_arguments('-DPLUGINDIR="'+join_paths(get_option('prefix'),
add_project_arguments('-DLOCALEDIR="'+join_paths(get_option('prefix'),
get_option('localedir'))+'"',
language : 'c')
-add_project_arguments('-DTARGET_ALIAS="xxxx"',
+
+# NB Code uses TARGET_ALIAS where it should really be HOST_ALIAS
+# "*_ALIAS" is an autotools-ism, so make something similar here.
+add_project_arguments('-DTARGET_ALIAS="'+host_machine.cpu_family()+'-'+host_machine.system()+'"',
language : 'c')
if openssl.found()