build-info(n)
π build-info(n) β the Tcl Built-In Commands glow-up π
okay bestie, so this is one of the Tcl built-in commands and honestly? it's giving "backstage pass to your own build". no cap.
β¨ NAME β¨
buildinfo β Build info π οΈ
πΈ SYNOPSIS πΈ
::tcl::build-info ?field?
π DESCRIPTION π
so basically, this command is your lil spy cam into how Tcl was built. like, the receipts. the lore. π
If you don't pass any options at all, it hands you the Tcl patchlevel, then a '+' sign, then the fossil commit-id, and then a list of dot-separated tags. all glued together. iconic behavior honestly.
But if you give it a field, it pulls out just that one field, exactly like described below. π
π¨ important bestie: any other field value that isn't mentioned below will always return "0". no exceptions, no drama.
For official Tcl releases, the fields are:
::tcl::build-info clangβ gives you the clang version number (as 4 digits) if Tcl was compiled with clang, and0if it wasn't. π::tcl::build-info commitβ gives you the fossil commit-id that Tcl was built from. the origin story fr.::tcl::build-info compiledebugβ returns1if Tcl is compiled with-DTCL_COMPILE_DEBUG,0otherwise.::tcl::build-info compilerβ gives you the compiler name (eitherclang,gcc,iccormsvc), then a dash, then a (4-digit) version number. slay π::tcl::build-info compilestatsβ returns1if Tcl is compiled with-DTCL_COMPILE_STATS,0otherwise.::tcl::build-info cplusplusβ returns1if Tcl is compiled with a C++ compiler,0otherwise.::tcl::build-info debugβ returns1if Tcl is not compiled with-DNDEBUG,0otherwise. (yes, it's a double negative, we don't make the rules π)::tcl::build-info gccβ gives you the gcc version number (as 4 digits) if Tcl is compiled with gcc,0otherwise.::tcl::build-info iccβ gives you the icc version number (as 4 digits) if Tcl is compiled with icc,0otherwise.::tcl::build-info ilp32β returns1if Tcl is compiled such that integers, longs and pointers are all 32-bit,0otherwise.::tcl::build-info memdebugβ returns1if Tcl is compiled with-DTCL_MEM_DEBUG,0otherwise.::tcl::build-info msvcβ gives you the msvc version number (as 4 digits) if Tcl is compiled with msvc,0otherwise.::tcl::build-info nmakeβ returns1if Tcl is built using nmake,0otherwise.::tcl::build-info no-deprecateβ returns1if Tcl is compiled with-DTCL_NO_DEPRECATED,0otherwise.::tcl::build-info no-threadβ returns1if Tcl is compiled with-DTCL_THREADS=0,0otherwise.::tcl::build-info no-optimizeβ returns1if Tcl is not compiled with-DTCL_CFG_OPTIMIZED,0otherwise.::tcl::build-info objective-cβ returns1if Tcl is compiled with an objective-c compiler,0otherwise.::tcl::build-info objective-cplusplusβ returns1if Tcl is compiled with an objective-c++ compiler,0otherwise.::tcl::build-info patchlevelβ gives you the Tcl patchlevel, same asinfo patchlevel. twins fr.::tcl::build-info profileβ returns1if Tcl is compiled with-DTCL_CFG_PROFILED,0otherwise.::tcl::build-info purifyβ returns1if Tcl is compiled with-DPURIFY,0otherwise.::tcl::build-info staticβ returns1if Tcl is compiled as a static library,0otherwise.::tcl::build-info tommathβ gives you the libtommath version number (as 4 digits) if libtommath is built into Tcl,0otherwise.::tcl::build-info versionβ gives you the Tcl version, same asinfo tclversion.::tcl::build-info zlibβ gives you the zlib version number (as 4 digits) if zlib is built into Tcl,0otherwise.
π¦ EXAMPLES π¦
here's ::tcl::build-info in its natural habitat, showing off π
::tcl::build-info
β 9.0.2+af16c07b81655fabde8028374161ad54b84ef9956843c63f49976b4ef601b611.gcc-1204
::tcl::build-info commit
β af16c07b81655fabde8028374161ad54b84ef9956843c63f49976b4ef601b611
::tcl::build-info compiler
β gcc-1204
::tcl::build-info gcc
β 1204
::tcl::build-info version
β 9.0
::tcl::build-info patchlevel
β 9.0.2
π SEE ALSO π
β KEYWORDS β
build-info
and that's the whole page bestie, you ate that π β¨ if you ever forget a field name just come back here, this page is literally your main character reference. mwah π«Ά
Tcl 9.0 Β· build-info(n) Β· go off, build-info, you absolute icon ππ
π¦ where this page comes from
- alpine 3.23: tcl9-doc 9.0.3-r0 Β· TCL
- alpine 3.24: tcl9-doc 9.0.3-r2 Β· TCL
- fedora 43: tcl-doc 1:9.0.2-1.fc43 Β· TCL AND GPL-3.0-or-later WITH Bison-exception-2.2 AND BSD-3-Clause
- fedora 44: tcl-doc 1:9.0.2-1.fc44 Β· TCL AND GPL-3.0-or-later WITH Bison-exception-2.2 AND BSD-3-Clause
- nixos 26.05: tcl 9.0.3
- nixpkgs unstable: tcl 9.1.0
- Copyright (c) 2025 Jan Nijtmans
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms