diff options
| author | Leitwolf11 | 2026-11-12 07:46:46 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-11-12 07:46:46 +0300 |
| commit | 3bffdc1d747a73ff83fab83f1a51b53c0ab507d9 (patch) | |
| tree | 7bf8f8b6faa18f8df25af263e22f3c2346d3bba3 /.github/workflows/codeql.yml | |
| parent | f7545228848e250856b9cdf2cf92538dfda0eb4f (diff) | |
| download | tazel-3bffdc1d747a73ff83fab83f1a51b53c0ab507d9.tar.gz | |
Read MODULE.kts and BUILD.kts, and resolve labelsfeature/labels-and-project-files
Tazel now reads the project files of the accepted DSL:
- Labels: //:x for the root BUILD.kts, //dir/:x for dir/BUILD.kts, :x for
the same file, @name//:x for a dependency, and the patterns //dir/... and
//... . The //dir shorthand is refused with a hint.
- MODULE.kts: module (name, SemVer version, description, authors, license),
dependencies (implementation, testImplementation, localImplementation,
localTestImplementation, with alias), viget (push, pushTarget, exclude),
cache and execution. Duplicate dependency names, a push without version,
description or author, and a pushTarget in a private BUILD.kts are errors.
- BUILD.kts: isPublic per file and c, cpp, objc, objcpp and zig targets,
each with bin, staticlib, sharedlib and test. The scopes carry type
markers of their language and kind, so a setting that one does not have
(exports on a bin, args on a staticlib, a C standard on C++, arc on C,
compiler on Zig, test settings on a bin, bundle on C++) is a compile
error at its line in the project file.
- A target block runs for each triple and build mode it is built for; OS
and ARCH come from the LLVM triple, BUILD_MODE from the command. Its
depends are resolved: libraries only, visibility through isPublic, test
dependencies for test targets only, paths kept inside the module.
- Directories starting with a dot and nested modules are not packages;
file names are compared case-sensitively.
The tests load a reference module that uses every setting of the DSL and
configure each of its eleven targets for each triple and mode.
Diffstat (limited to '.github/workflows/codeql.yml')
0 files changed, 0 insertions, 0 deletions