|  | 
| 1 | 1 | libtargets = [] | 
|  | 2 | +libtargets += static_library('libavx', | 
|  | 3 | +  files( | 
|  | 4 | +    'x86simdsort-avx2.cpp', | 
|  | 5 | +    ), | 
|  | 6 | +  include_directories : [src], | 
|  | 7 | +  cpp_args : cpp.get_id() == 'msvc' ? ['/arch:AVX2'] : ['-march=haswell'], | 
|  | 8 | +  gnu_symbol_visibility : 'inlineshidden', | 
|  | 9 | +  dependencies: [omp_dep], | 
|  | 10 | +  ) | 
| 2 | 11 | 
 | 
| 3 |  | -if cpp.has_argument('-march=haswell') | 
| 4 |  | -  libtargets += static_library('libavx', | 
| 5 |  | -    files( | 
| 6 |  | -      'x86simdsort-avx2.cpp', | 
| 7 |  | -      ), | 
| 8 |  | -    include_directories : [src], | 
| 9 |  | -    cpp_args : meson.get_compiler('cpp').get_id() == 'msvc' ? ['/arch:AVX2'] : ['-march=haswell'], | 
| 10 |  | -    gnu_symbol_visibility : 'inlineshidden', | 
| 11 |  | -    dependencies: [omp_dep], | 
| 12 |  | -    ) | 
| 13 |  | -endif | 
| 14 |  | - | 
| 15 |  | -if cpp.has_argument('-march=skylake-avx512') | 
| 16 |  | -  libtargets += static_library('libskx', | 
| 17 |  | -    files( | 
| 18 |  | -      'x86simdsort-skx.cpp', | 
| 19 |  | -      ), | 
| 20 |  | -    include_directories : [src], | 
| 21 |  | -    cpp_args : meson.get_compiler('cpp').get_id() == 'msvc' ? ['/arch:AVX512'] : ['-march=skylake-avx512'], | 
| 22 |  | -    gnu_symbol_visibility : 'inlineshidden', | 
| 23 |  | -    dependencies: [omp_dep], | 
| 24 |  | -    ) | 
| 25 |  | -endif | 
|  | 12 | +libtargets += static_library('libskx', | 
|  | 13 | +  files( | 
|  | 14 | +    'x86simdsort-skx.cpp', | 
|  | 15 | +    ), | 
|  | 16 | +  include_directories : [src], | 
|  | 17 | +  cpp_args : cpp.get_id() == 'msvc' ? ['/arch:AVX512'] : ['-march=skylake-avx512'], | 
|  | 18 | +  gnu_symbol_visibility : 'inlineshidden', | 
|  | 19 | +  dependencies: [omp_dep], | 
|  | 20 | +  ) | 
| 26 | 21 | 
 | 
| 27 |  | -if cpp.has_argument('-march=icelake-client') | 
| 28 |  | -  libtargets += static_library('libicl', | 
| 29 |  | -    files( | 
| 30 |  | -      'x86simdsort-icl.cpp', | 
| 31 |  | -      ), | 
| 32 |  | -    include_directories : [src], | 
| 33 |  | -    cpp_args : meson.get_compiler('cpp').get_id() == 'msvc' ? ['/arch:AVX512'] : ['-march=icelake-client'], | 
| 34 |  | -    gnu_symbol_visibility : 'inlineshidden', | 
| 35 |  | -    dependencies: [omp_dep], | 
| 36 |  | -    ) | 
| 37 |  | -endif | 
|  | 22 | +libtargets += static_library('libicl', | 
|  | 23 | +  files( | 
|  | 24 | +    'x86simdsort-icl.cpp', | 
|  | 25 | +    ), | 
|  | 26 | +  include_directories : [src], | 
|  | 27 | +  cpp_args : cpp.get_id() == 'msvc' ? ['/arch:AVX512'] : ['-march=icelake-client'], | 
|  | 28 | +  gnu_symbol_visibility : 'inlineshidden', | 
|  | 29 | +  dependencies: [omp_dep], | 
|  | 30 | +  ) | 
| 38 | 31 | 
 | 
| 39 | 32 | if cancompilefp16 | 
| 40 | 33 |   libtargets += static_library('libspr', | 
| 41 | 34 |     files( | 
| 42 | 35 |       'x86simdsort-spr.cpp', | 
| 43 | 36 |       ), | 
| 44 | 37 |     include_directories : [src], | 
| 45 |  | -    cpp_args : meson.get_compiler('cpp').get_id() == 'msvc' ? ['/arch:AVX512'] : ['-march=sapphirerapids'], | 
|  | 38 | +    cpp_args : cpp.get_id() == 'msvc' ? ['/arch:AVX512'] : ['-march=sapphirerapids'], | 
| 46 | 39 |     gnu_symbol_visibility : 'inlineshidden', | 
| 47 | 40 |     dependencies: [omp_dep], | 
| 48 | 41 |     ) | 
|  | 
0 commit comments