Skip to content

Commit 89f5cc3

Browse files
Merge branch 'master' into feat/macros-sizeof-alignof
2 parents d24955a + dafc287 commit 89f5cc3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/man/crystal/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Hello Crystal!
142142

143143
* `--cross-compile`: Generate a .o file, and print the command to generate an executable to stdout.
144144
* `-D FLAG, --define FLAG`: Define a compile-time flag.
145-
* `-o <output_file>`: Define the name of the binary executable.
145+
* `-o <path>`, `--output <path>`: Path to the output file. If a directory, the filename is derived from the first source file (default: current directory).
146146
* `-O LEVEL`: Define optimization level: 0 (default), 1, 2, 3. See [Optimizations](#optimizations) for details.
147147
* `--release`: Compile in release mode. Equivalent to `-O3 --single-module`.
148148
* `--link-flags FLAGS`: Additional flags to pass to the linker.
@@ -472,6 +472,7 @@ The following environment variables are used by the Crystal compiler if set in t
472472

473473
* `CRYSTAL_CACHE_DIR`: Defines path where Crystal caches partial compilation results for faster subsequent builds. This path is also used to temporarily store executables when Crystal programs are run with [`crystal run`](#crystal-run) rather than [`crystal build`](#crystal-build).
474474
Default value is the first directory that either exists or can be created of `${XDG_CACHE_HOME}/crystal` (if `XDG_CACHE_HOME` is defined), `${HOME}/.cache/crystal`, `${HOME}/.crystal`, `./.crystal`. If `CRYSTAL_CACHE_DIR` is set but points to a path that is not writeable, the default values are used instead.
475+
* `CRYSTAL_EXEC_PATH`: Determines the path where *crystal* looks for external sub-commands.
475476
* `CRYSTAL_PATH`: Defines paths where Crystal searches for required files.
476477
* `CRYSTAL_VERSION` is only available as output of [`crystal env`](#crystal-env). The compiler neither sets nor reads it.
477478
* `CRYSTAL_LIBRARY_PATH`: The compiler uses the paths in this variable as a first lookup destination for static and dynamic libraries that are to be linked. For example, if static libraries are put in `build/libs`, setting the environment variable accordingly will tell the compiler to look for libraries there.

docs/man/required_libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Both `OpenSSL` and `LibreSSL` are supported and the bindings automatically detec
8585
| [LibXML2][libxml2] | XML parser developed for the Gnome project. Implements the [`XML`](https://crystal-lang.org/api/XML.html) module. | [MIT](https://gitlab.gnome.org/GNOME/libxml2/-/blob/master/Copyright) |
8686
| [LibYAML][libyaml] | YAML parser and emitter library. Implements the [`YAML`](https://crystal-lang.org/api/YAML.html) module. | [MIT](https://github.com/yaml/libyaml/blob/master/License) |
8787
| [zlib][zlib] | Lossless data compression library. Implements the [`Compress`](https://crystal-lang.org/api/Compress.html) module. May be disabled with the `-Dwithout_zlib` compile-time flag. | [zlib](http://zlib.net/zlib_license.html) |
88-
| [LLVM][libllvm] | Target-independent code generator and optimizer. Implements the [`LLVM`](https://crystal-lang.org/api/LLVM.html) API. <br>**Supported versions:** LLVM 8-19 (aarch64 requires LLVM 13+) | [Apache v2 with LLVM exceptions](https://llvm.org/docs/DeveloperPolicy.html#new-llvm-project-license-framework) |
88+
| [LLVM][libllvm] | Target-independent code generator and optimizer. Implements the [`LLVM`](https://crystal-lang.org/api/LLVM.html) API. <br>**Supported versions:** LLVM 8-20 (aarch64 requires LLVM 13+) | [Apache v2 with LLVM exceptions](https://llvm.org/docs/DeveloperPolicy.html#new-llvm-project-license-framework) |
8989

9090
## Compiler dependencies
9191

0 commit comments

Comments
 (0)