MKC_CHECK_COMPILER(1)
β¨ MKC_CHECK_COMPILER β¨
Okay bestie, so this is the mkc_check_compiler page from section 1 of the manual. It's a little script that figures out which C or C++ compiler you've got and what version it is. Let's get into it π
π NAME π
mkc_check_compiler β checks for C and C++ compiler type. That's literally the whole vibe. It's the compiler detective bestie you never knew you needed π΅οΈββοΈ
πΈ SYNOPSIS πΈ
mkc_check_compiler [OPTIONS]
π¦ DESCRIPTION π¦
So here's the tea: mkc_check_compiler recognizes the compiler type and its version, and prints them to stdout. Iconic behavior, no cap.
By default, it creates temporary and cache files named _mkc_compiler_type.{err,res} (for the C compiler) and _mkc_cxx_type.{err,res} (for the C++ compiler). These little cuties live under the MKC_CACHEDIR directory. It's giving organized β¨
π OPTIONS π
-xβ Check the C++ compiler type. By default, the C compiler type and version are checked. So if you're a C++ girlie, this is your flag π-Dβ Delete cache files. It's the "clean up your room" option, lowkey necessary sometimes π§Ή
π ENVIRONMENT π
CCβ The C compiler. The default iscc. Your main character C compiler, periodt.CXXβ The C++ compiler. The default isc++. For when you're feeling fancy and object-oriented πMKC_VERBOSEβ If set to1, verbose messages are output to stderr. It's like the compiler is narrating its own life story to you π£οΈMKC_SHOW_CACHEDβ If set to1andMKC_VERBOSEis set to1, cached results are output to stderr. The ultimate "show me what you remember" combo π₯MKC_CACHEDIRβ Directory where temporary and cache files are created. If unset, they're created in the current directory. Like, right here, right now, no big deal πMKC_NOCACHEβ All results are cached unless theMKC_NOCACHEvariable is set to1. So if you're a "no cache, fresh start" kind of bestie, set it to1and slay πMKC_DELETE_TMPFILESβ If set to1, temporary files are removed. Clean girl aesthetic, we love to see it π§
β EXAMPLES β
export CC=icc; mkc_check_compiler
export CXX=clang++; mkc_check_compiler -x
Like, literally just export your compiler and run it. That's the whole thing. So simple it's almost iconic π«Ά
π AUTHOR π
Aleksey Cheusov <vle@gmx.net>
Hey bestie, quick reminder: this page is from Feb 4, 2020, and it's part of the manual for MKC_CHECK_COMPILER(1). If you ever forget the details, just come back and reread. You got this π
Stay slay, stay compiled β¨π
π¦ where this page comes from
- alpine 3.24: mk-configure-doc 0.40.0-r1 Β· BSD-2-Clause
- arch rolling: mk-configure 0.40.3-1 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms