vectorscan/cmake/attrib.cmake
2016-12-14 15:34:54 +11:00

4 lines
214 B
CMake

# tests for compiler properties
CHECK_C_SOURCE_COMPILES("int foo(int) __attribute__ ((ifunc(\"foo_i\"))); int f1(int i) { return i; } void (*foo_i()) { return f1; } int main(void) { return 0; }" HAS_C_ATTR_IFUNC)