Build for QNX
buildCompile QNX SDP 8.0 projects on the host with automatic CMake, Make, or qcc selection, returning diagnostics and deployable artifacts.
Instructions
Compile on the build host with the QNX SDP 8.0 toolchain. system=auto picks cmake (CMakeLists.txt), make (Makefile) or qcc (plain sources). make and cmake run the project's own build files, which can execute any command: only build trees you trust. qcc mode builds the given sources (default: every .c/.cpp in path) with -g -O0 -Wall unless cflags is set. Returns diagnostics[] with file, line, column, severity, message (gcc JSON diagnostics in qcc mode, parsed text for make/cmake), linker errors, and artifacts[] with path, arch, build_id and debug_info for deploy_and_run. ok=false with error.code build_failed when compilation fails.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arch | No | Target architecture; must match the target you deploy to | x86_64 |
| path | Yes | Host path: project directory or a single source file | |
| cflags | No | Compiler flags; qcc default is ['-g','-O0','-Wall'] | |
| output | No | qcc mode: output executable path (default: first source's stem inside path) | |
| system | No | Build driver | auto |
| ldflags | No | qcc mode: linker flags/libraries, e.g. ['-lsocket'] | |
| sources | No | qcc mode: source files (relative to path or absolute) | |
| make_args | No | Extra make or cmake --build arguments | |
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||