blob: 7a3fc037c300a8d8e7580176275641e89101de0e [file] [log] [blame]
#include <stdio.h>
#include <stdlib.h>
// This file is instantiated by CMake.
// DEFINITIONS below is replaced with a set of lines like so:
// #ifdef __SSE2__
// "SSE2",
// #endif
// This allows for introspection of compiler definitions.
// The output of the program is a single line of semi colon separated feature
// names.
// MSVC is using a different set of preprocessor definitions for
// SSE and SSE2, see _M_IX86_FP in
int main(int, char **) {
const char *strings[] = {
// If DEFINITIONS turns out to be empty, we don't want to list
// an empty array. So, we add an end of list marker.
const size_t size = sizeof(strings) / sizeof(strings[0]);
for (size_t i = 0; i < size; ++i) {
if (i)
fputs(strings[i], stdout);