aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-27 14:09:40 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-27 14:09:40 +0100
commit48dafdabc1240932db01252279393fdfa18acc14 (patch)
tree842aa553e32c95efb6211076da699468be9e5624 /CMakeLists.txt
parenta8bbbc899c238d06f89a1abe773a967c08051081 (diff)
downloadrspamd-48dafdabc1240932db01252279393fdfa18acc14.tar.gz
rspamd-48dafdabc1240932db01252279393fdfa18acc14.zip
[Fix] Another fix for rdtcs
Issue: #1885
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0acfefb75..8256f5f39 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1123,18 +1123,18 @@ ENDIF()
CHECK_C_SOURCE_RUNS("
#include <x86intrin.h>
int main(int argc, char **argv) {
- unsigned l;
- if (__builtin_ia32_rdtscp(&l)) {
+ __builtin_ia32_lfence ();
+ if (__builtin_ia32_rdtsc()) {
return 0;
}
return -1;
}
-" HAVE_RDTSCP)
+" HAVE_RDTSC)
-IF(NOT HAVE_RDTSCP)
- MESSAGE(STATUS "rdtscp intrinsic is -NOT- supported")
+IF(NOT HAVE_RDTSC)
+ MESSAGE(STATUS "rdtsc intrinsic is -NOT- supported")
ELSE()
- MESSAGE(STATUS "rdtscp intrinsic is supported")
+ MESSAGE(STATUS "rdtsc intrinsic is supported")
ENDIF()
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")