carta
mkc_check_compiler(1)

mkc_check_compiler1

Checks for c and c++ compiler type.

Usage

mkc_check_compiler [OPTIONS]

Overview

mkc_check_compiler recognizes the compiler type and version, and prints them to stdout. By default, temporary and cache files _mkc_compiler_type.{err,res} (for C compiler) and _mkc_cxx_type.{err,res} (for C++ compiler) are created under MKC_CACHEDIR directory.

Options

-x

Check C++ compiler type. By default C compiler type and version are checked.

-D

Delete cache files.

Environment

CC

C compiler. The default is cc.

CXX

C++ compiler. The default is c++.

MKC_VERBOSE

If set to 1, verbose messages are output to stderr.

MKC_SHOW_CACHED

If set to 1 and MKC_VERBOSE is set to 1, cached results are output to stderr.

MKC_CACHEDIR

Directory where temporary and cache files are created. If unset they are created in a current directory.

MKC_NOCACHE

All results are cached unless MKC_NOCACHE variable is set to 1.

MKC_DELETE_TMPFILES

If set to 1, temporary files are removed.

Examples

   export CC=icc; mkc_check_compiler
   export CXX=clang++; mkc_check_compiler -x

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie) to Debian 11 (Bullseye)

-D since Arch Linux 2026-11-01.

Author

Aleksey Cheusov <[email protected]>

From mk-configure 0.40.3-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.