intercept-build Options#

The intercept-build tool is available for Linux* only. It is available as part of SYCLomatic installation.

The following table lists intercept-build tool command line options.

Option

Description

–append

Extend existing compilation database with new entries. Duplicate entries are detected and not present in the final output. The output is not continuously updated; it’s done when the build command finished. Default: disabled.

–cdb <file>

The JSON compilation database. Default name: compile_commands.json.

–intercept-build

Invoke the intercept-build tool to generate a compilation database.

–linker-entry

Generate linker entry in compilation database if the –linker-entry option is present. Default: enabled.

–no-linker-entry

Do not generate linker entry in compilation database if the –no-linker-entry option is present. Default: disabled.

–parse-build-log <file>

Specify the file path of the build log.

–verbose, -v

Enable verbose output from intercept-build. A second, third, and fourth flag increases verbosity.

–work-directory <path>

Specify the working directory of the command that generates the build log specified by option -parse-build-log. Default: the directory of build log file specified by option -parse-build-log.