summaryrefslogtreecommitdiff
path: root/neozip/cmake/detect-arch.c
blob: 8e9310d0c2e16a6c8d9cfda6c7d5dbdb3153cf1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* detect-arch.c -- Detect compiler architecture and print to stderr
 *                  containing a simple arch identifier.
 * Copyright (C) 2019 Hans Kristian Rosbach
 * Licensed under the Zlib license, see LICENSE.md for details
 */

#include <stdio.h>

#include "../zarch.h"

int main(void) {
    fprintf(stderr, "archfound " ARCH_NAME "\n");
#ifdef ARCH_VERSION_STR
    fprintf(stderr, "archversion " ARCH_VERSION_STR "\n");
#endif
    return 0;
}