Skip to content

Commit

Permalink
meson: fix build on power/ppc targets with altivec enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Kolesa committed Dec 14, 2018
1 parent 10819b4 commit 6e11153
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions header_checks/meson.build
Expand Up @@ -12,6 +12,8 @@ if get_option('native-arch-optimization')
if cc.has_header(native_header) == false
error('Error, header '+native_header+' is required')
endif

config_h.set10('HAVE_'+native_header.underscorify().to_upper(), true)
endif

header_checks = [
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Expand Up @@ -157,7 +157,7 @@ if get_option('native-arch-optimization')
message('ARM64 build - NEON + intrinsics enabled')
elif host_machine.cpu_family() == 'ppc' or host_machine.cpu_family() == 'ppc64'
config_h.set10('BUILD_ALTIVEC', true)
add_global_arguments('-maltivec-vectorize', language: 'c')
add_global_arguments('-ftree-vectorize', language: 'c')
add_global_arguments('-maltivec', language: 'c')
message('PPC/POWER build - ALTIVEC enabled')
endif
Expand Down

0 comments on commit 6e11153

Please sign in to comment.