CRYSTAL-SPEC(1)
π¦ crystal-spec β like, the whole manual bestie π¦
okay so this is the crystal-spec page from the Crystal Compiler Command Line Reference Guide, and I'm gonna walk you through it like we're texting at 1am π no cap, every flag is here, nothing skipped.
β¨ NAME β¨
crystal-spec β compile and run Crystal spec files π
that's it. that's the whole vibe. it compiles your specs and runs them. iconic behaviour honestly.
β¨ SYNOPSIS β¨
crystal spec [options] [files]
so you say crystal spec, you throw some options at it, you optionally point it at specific files, and it goes πββοΈπ¨
β¨ OPTIONS β¨
-d,--debugβ generates the output with symbolic debug symbols πβ¨ these get read when you're debugging the built program with tools like lldb, gdb, valgrind etc., and they give those tools mappings back to your original source code. so when something goes feral you actually know where π--no-debugβ generates the output with zero symbolic debug symbols. none. not a crumb π-D FLAG,--define FLAGβ defines a compile-time flag π© this is the move when you wanna conditionally define types, methods, or commands based on flags that are available at compile time. the default flags come from the target triple you gave with--target-triple, or the host's default if you didn't give one π«Ά--error-traceβ shows the full error trace π the whole thing. every layer.-O LEVELβ optimization mode, bestie:0(default),1,2,3π₯ see OPTIMIZATIONS for the details.--releaseβ compiles in release mode π literally equivalent to-O3 --single-module. say less.-s,--statsβ prints statistics about the different compiler stages for the current build π outputs time and used memory for each compiler process. the way it just tells you everything.-p,--progressβ prints statistics about the progress for the current build β³ so you're not just staring at the terminal wondering if it's alive.-t,--timeβ prints statistics about the execution time β±οΈ yes queen, tell me how long you took.--no-colorβ disables colored output πβ‘οΈπ« for when your terminal is being extra or you're piping stuff somewhere that doesn't deserve the rainbow.
heads up: -O sends you to the OPTIMIZATIONS section for the details, so that's where the deets live β¨
πΈ aaaand that's the page!! this one's from crystal 1.22.2, dated 2026-10-30 β so like, go forth and run your specs, bestie, you're gonna slay ππ«Ά
π¦ where this page comes from
- arch rolling: crystal 1.22.2-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms