path: root/src/lib/ector/software
diff options
authorMarcel Hollerbach <>2018-11-16 16:49:53 +0100
committerMarcel Hollerbach <>2018-11-16 17:29:05 +0100
commit46422187d81145f87b5f2ec023aaea4554999f74 (patch)
tree628de080ef4173d3d2c616663d734091bef53230 /src/lib/ector/software
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:
Diffstat (limited to 'src/lib/ector/software')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ector/software/ b/src/lib/ector/software/
index b587ca9024..cef9c957c8 100644
--- a/src/lib/ector/software/
+++ b/src/lib/ector/software/
@@ -40,7 +40,7 @@ if cpu_sse3 == true
40 sources: pub_eo_file_target + [ 'ector_software_gradient_sse3.c' ], 40 sources: pub_eo_file_target + [ 'ector_software_gradient_sse3.c' ],
41 dependencies: ector_pub_deps + [triangulator, freetype, draw, m] + ector_deps, 41 dependencies: ector_pub_deps + [triangulator, freetype, draw, m] + ector_deps,
42 include_directories: config_dir + [ include_directories('..') ], 42 include_directories: config_dir + [ include_directories('..') ],
43 c_args: ector_opt_c_args, 43 c_args: native_arch_opt_c_args,
44 ) 44 )
45 ector_opt_lib += [ ector_opt ] 45 ector_opt_lib += [ ector_opt ]
46endif 46endif