d75545600d
By doing this the compiler can notice that much of the code is unused in the case that we know that we can't have a hardware RNG (i.e. ARM). Change-Id: I72d364a30080364d700f855640e0164c2c62f0de Reviewed-on: https://boringssl-review.googlesource.com/6001 Reviewed-by: David Benjamin <davidben@chromium.org> Reviewed-by: Adam Langley <agl@google.com>
24 lines
285 B
CMake
24 lines
285 B
CMake
include_directories(../../include)
|
|
|
|
if (${ARCH} STREQUAL "x86_64")
|
|
set(
|
|
RAND_ARCH_SOURCES
|
|
|
|
rdrand-x86_64.${ASM_EXT}
|
|
)
|
|
endif()
|
|
|
|
add_library(
|
|
rand
|
|
|
|
OBJECT
|
|
|
|
rand.c
|
|
urandom.c
|
|
windows.c
|
|
|
|
${RAND_ARCH_SOURCES}
|
|
)
|
|
|
|
perlasm(rdrand-x86_64.${ASM_EXT} asm/rdrand-x86_64.pl)
|