diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-27 14:09:40 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-27 14:09:40 +0100 |
commit | 48dafdabc1240932db01252279393fdfa18acc14 (patch) | |
tree | 842aa553e32c95efb6211076da699468be9e5624 /CMakeLists.txt | |
parent | a8bbbc899c238d06f89a1abe773a967c08051081 (diff) | |
download | rspamd-48dafdabc1240932db01252279393fdfa18acc14.tar.gz rspamd-48dafdabc1240932db01252279393fdfa18acc14.zip |
[Fix] Another fix for rdtcs
Issue: #1885
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
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") |