fix typo in detecting HAVE_AUXV_GETAUXVAL (#10913)

Summary:
crc32 uses CPU heavily,  arm64 and ppc will benefited by crc32 accelerate.

Only build via `cmake` affected

- Arm64 Tested ok, crc32 acceralated, write 30GB data throughput promoted 30%.
- ppc not tested.
- x86_64 seems not affected.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/10913

Reviewed By: pdillinger

Differential Revision: D45959843

Pulled By: ajkr

fbshipit-source-id: 93c91f2702fec33cca69139a2544d7c5ebeac4c6
oxigraph-main
FishAndBird 2 years ago committed by Facebook GitHub Bot
parent 6eb3770b46
commit 5b945adf60
  1. 2
      CMakeLists.txt

@ -547,7 +547,7 @@ if(HAVE_SCHED_GETCPU)
add_definitions(-DROCKSDB_SCHED_GETCPU_PRESENT) add_definitions(-DROCKSDB_SCHED_GETCPU_PRESENT)
endif() endif()
check_cxx_symbol_exists(getauxval auvx.h HAVE_AUXV_GETAUXVAL) check_cxx_symbol_exists(getauxval "sys/auxv.h" HAVE_AUXV_GETAUXVAL)
if(HAVE_AUXV_GETAUXVAL) if(HAVE_AUXV_GETAUXVAL)
add_definitions(-DROCKSDB_AUXV_GETAUXVAL_PRESENT) add_definitions(-DROCKSDB_AUXV_GETAUXVAL_PRESENT)
endif() endif()

Loading…
Cancel
Save