@imp/rules/c/generate_build
Module: @imp/rules/c/generate_build.
C_CONFIG_SCHEMA
The configuration schema of the c namespace. build_generate enables
the generator. The default is false.
Source: rules/c/generate_build/index.luau:24.
generate_build(options)
Give the generated BUILD targets for the unowned C, C++, and CMake
sources below root.
Options: root The workspace directory to search. The default is ".". exclude Glob patterns to skip. The default skips hidden directories and the build, coverage, dist, obj, target, and vendor directories.
The result maps each BUILD.luau path to a list of { name, rule, props }
targets.
Source: rules/c/generate_build/index.luau:256.
has_c_main_entrypoint(source_text)
Return true when the C or C++ source text calls or defines main(
outside comments and string or character literals.
Source: rules/c/generate_build/index.luau:213.