diff options
Diffstat (limited to 'neozip/cmake/detect-arch.c')
| -rw-r--r-- | neozip/cmake/detect-arch.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/neozip/cmake/detect-arch.c b/neozip/cmake/detect-arch.c new file mode 100644 index 0000000000..8e9310d0c2 --- /dev/null +++ b/neozip/cmake/detect-arch.c @@ -0,0 +1,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; +} |
