diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2018-11-16 16:49:53 +0100 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2018-11-16 17:29:05 +0100 |
commit | 46422187d81145f87b5f2ec023aaea4554999f74 (patch) | |
tree | 628de080ef4173d3d2c616663d734091bef53230 /meson_options.txt | |
parent | ae543adbd1cddfc6fbadb564c3be46c71beb6e5f (diff) | |
download | efl-46422187d81145f87b5f2ec023aaea4554999f74.tar.gz |
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.txt | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/meson_options.txt b/meson_options.txt index 94d3007d58..296b3b88d8 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -328,27 +328,8 @@ option('mono', description: 'Flag for handling c# bindings' ) -option('cpu-mmx', +option('native-arch-optimization', type: 'boolean', value: true, - description: 'Build MMX support when building for intel' + description: 'Flag for enabling architecture native optimizations' ) - -option('cpu-sse3', - type: 'boolean', - value: true, - description: 'Build SSE3 support when building for intel' -) - -option('cpu-neon', - type: 'boolean', - value: true, - description: 'Build NEON support when building for ARM' -) - -option('cpu-altivec', - type: 'boolean', - value: true, - description: 'Build ALTIVEC support when building for PPC/POWER' -) - |