BUILDER-CC(1)

πŸ“¦ version 0.21ubuntu1, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– BUILDER-CC(1) πŸ’–

okay so bestie, welcome to the Debian GNU/Linux manual page for builder-cc β€” the lil wrapper that makes pentium optimizations happen without you touching your build flags. it's giving effortless. ✨


🌸 NAME 🌸

builder-cc β€” a gcc wrapper that facilitates pentium-optimizations. no cap. πŸ‘‘


✨ SYNOPSIS ✨

export DEBIAN_BUILDARCH=architecture
export DEBIAN_BUILDGCCVER=gcc-version
gcc ...

πŸ¦‹ DESCRIPTION πŸ¦‹

The builder-cc wrapper is normally used by just... calling gcc like you always do. main character energy, honestly. 🫢

If the environment variable DEBIAN_BUILDARCH is not set, builder-cc does absolutely nothing, and the real gcc gets invoked with the arguments you specified. it's just standing there, being supportive. πŸ’…

But when DEBIAN_BUILDARCH is set, builder-cc invokes gcc with your specified arguments, plus these:

-mcpu=DEBIAN_BUILDARCH -march=DEBIAN_BUILDARCH

which has the effect of telling gcc to use architecture-specific optimizations without you changing the command line at all. the way that it just handles it for you?? iconic. πŸ”₯ This is particularly useful for package builds. πŸ“¦βœ¨

Now, the gcc-version tea: if DEBIAN_BUILDGCCVER is not set, builder-cc calls gcc.real. But if DEBIAN_BUILDGCCVER is set, builder-cc calls gcc-DEBIAN_BUILDGCCVER instead. choose your fighter. πŸ₯Š


πŸŽ€ ENVIRONMENT πŸŽ€

  • DEBIAN_BUILDARCH β€” if set, this is the architecture to compile for. useful values are pentium or pentiumpro. 🧚
  • DEBIAN_BUILDGCCVER β€” if set, this is the version of gcc to be invoked. useful values are 3.0 or 2.95. ⭐

πŸ’€ NOTES πŸ’€

the real gcc is renamed gcc.real, and a diversion is registered with dpkg-divert(1). so basically, builder-cc's idea of what the "default gcc" is gets dictated by whatever package installed /usr/bin/gcc. iykyk. πŸ™ˆ


🌈 SEE ALSO 🌈


and that's the whole vibe, bestie πŸ“ β€” this little love letter came to you from the Debian Project, dated 2002-03-02, living its life as page BUILDER-CC(1). slay, compile, periodt. πŸ’…πŸ’–

πŸ“¦ where this page comes from