File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ def cmake_bool(cond):
8787 platforms = ['any' ],
8888 cmake_args = [
8989 '-DBLOSC_DIR:PATH=%s' % os .environ .get ('BLOSC_DIR' , '' ),
90- '-DDEACTIVATE_SSE2:BOOL=%s' % cmake_bool ('DISABLE_BLOSC_SSE2' in os .environ or 'sse2' not in cpu_info ['flags' ]),
91- '-DDEACTIVATE_AVX2:BOOL=%s' % cmake_bool ('DISABLE_BLOSC_AVX2' in os .environ ),
90+ '-DDEACTIVATE_SSE2:BOOL=%s' % cmake_bool (( 'DISABLE_BLOSC_SSE2' in os .environ ) or ( cpu_info is None ) or ( 'sse2' not in cpu_info ['flags' ]) ),
91+ '-DDEACTIVATE_AVX2:BOOL=%s' % cmake_bool (( 'DISABLE_BLOSC_AVX2' in os .environ ) or ( cpu_info is None ) or ( 'avx2' not in cpu_info [ 'flags' ]) ),
9292 '-DDEACTIVATE_LZ4:BOOL=%s' % cmake_bool (not int (os .environ .get ('INCLUDE_LZ4' , '1' ))),
9393 # Snappy is disabled by default
9494 '-DDEACTIVATE_SNAPPY:BOOL=%s' % cmake_bool (not int (os .environ .get ('INCLUDE_SNAPPY' , '0' ))),
You can’t perform that action at this time.
0 commit comments