//ll:driver.bzl
Select the C or C++ driver for compile actions.
compiler_driver
compiler_driver(ctx, in_file)
Return either the C or C++ driver, depending on the input file extension.
parameters
Name | Description |
---|---|
ctx |
The rule context. |
in_file |
A file. |
returns
The C driver if in_file
ends in .c
. The C++ driver otherwise.