Files
clang-p2996/libc/cmake/modules/cpu_features/check_SSE2.cpp
Guillaume Chatelet fd64482e3d [libc][NFC] Detect host CPU features using try_compile instead of try_run.
This implements the same behavior as D141997 but makes sure that the same detection mechanism is used between CMake and source code.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D142108
2023-01-25 07:57:32 +00:00

6 lines
96 B
C++

#include "src/__support/cpu_features.h"
#ifndef LIBC_TARGET_HAS_SSE2
#error unsupported
#endif