summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-16 16:49:53 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-16 17:29:05 +0100
commit46422187d81145f87b5f2ec023aaea4554999f74 (patch)
tree628de080ef4173d3d2c616663d734091bef53230 /meson_options.txt
parentae543adbd1cddfc6fbadb564c3be46c71beb6e5f (diff)
meson: cleanup the native-cpu optimization build code
you were not able to disable the header checks, so if the header was not there it indicated that you could turn it of. However, the option check was in the has_header if not outside of it. Further more, header checks are done in the subdirectory that is done for header checks, unneccessary cpu_**** flags are removed, global optimization options are added to the global_arguments instead of just the package_c_args, which leads to the fact that also all binaries etc. are build by default with those optimization flags. This also reduces the amount of options to a minimum of 1 option, to just control if there should be the optimization or not. This also changes from host_maschine to target_mschine, since we probebly want to enable the optimization for the target maschine, not the host. Differential Revision: https://phab.enlightenment.org/D7296
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt23
1 files changed, 2 insertions, 21 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 94d3007..296b3b8 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -328,27 +328,8 @@ option('mono',
328 description: 'Flag for handling c# bindings' 328 description: 'Flag for handling c# bindings'
329) 329)
330 330
331option('cpu-mmx', 331option('native-arch-optimization',
332 type: 'boolean', 332 type: 'boolean',
333 value: true, 333 value: true,
334 description: 'Build MMX support when building for intel' 334 description: 'Flag for enabling architecture native optimizations'
335) 335)
336
337option('cpu-sse3',
338 type: 'boolean',
339 value: true,
340 description: 'Build SSE3 support when building for intel'
341)
342
343option('cpu-neon',
344 type: 'boolean',
345 value: true,
346 description: 'Build NEON support when building for ARM'
347)
348
349option('cpu-altivec',
350 type: 'boolean',
351 value: true,
352 description: 'Build ALTIVEC support when building for PPC/POWER'
353)
354