Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann authored Aug 2, 2023
1 parent 9a18386 commit c793359
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/rapidfuzz/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function(rf_add_library name)
endif()
endfunction(rf_add_library)

if(RAPIDFUZZ_ARCH_X64 or RAPIDFUZZ_ARCH_X86)
if(RAPIDFUZZ_ARCH_X64 OR RAPIDFUZZ_ARCH_X86)
create_cython_target(_feature_detector_cpp)
rf_add_library(_feature_detector_cpp ${_feature_detector_cpp}
${CMAKE_CURRENT_LIST_DIR}/FeatureDetector/CpuInfo.cpp)
Expand All @@ -56,7 +56,7 @@ target_include_directories(fuzz_cpp PRIVATE ${RF_BASE_DIR}/rapidfuzz)
target_link_libraries(fuzz_cpp PRIVATE rapidfuzz::rapidfuzz)
install(TARGETS fuzz_cpp LIBRARY DESTINATION src/rapidfuzz)

if(RAPIDFUZZ_ARCH_X64 or RAPIDFUZZ_ARCH_X86)
if(RAPIDFUZZ_ARCH_X64 OR RAPIDFUZZ_ARCH_X86)
create_cython_target(fuzz_cpp_avx2)
rf_add_library(fuzz_cpp_avx2 ${fuzz_cpp_avx2})
target_compile_features(fuzz_cpp_avx2 PUBLIC cxx_std_17)
Expand Down
2 changes: 1 addition & 1 deletion src/rapidfuzz/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def vectorized_import(name: str) -> tuple[Any, list[Any]]:
module = optional_import_module(name + "_avx2")
if module is not None:
return module
elif supports(SSE2):
if supports(SSE2):
module = optional_import_module(name + "_sse2")
if module is not None:
return module
Expand Down
2 changes: 1 addition & 1 deletion src/rapidfuzz/distance/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ target_include_directories(
target_link_libraries(metrics_cpp PRIVATE rapidfuzz::rapidfuzz)
install(TARGETS metrics_cpp LIBRARY DESTINATION src/rapidfuzz/distance)

if(RAPIDFUZZ_ARCH_X64 or RAPIDFUZZ_ARCH_X86)
if(RAPIDFUZZ_ARCH_X64 OR RAPIDFUZZ_ARCH_X86)
create_cython_target(metrics_cpp_avx2)
rf_add_library(metrics_cpp_avx2 ${metrics_cpp_avx2})
target_compile_features(metrics_cpp_avx2 PUBLIC cxx_std_17)
Expand Down

0 comments on commit c793359

Please sign in to comment.