Check compiler and linker flags
check_build_flagsReads compiler and linker command lines, or the values of CFLAGS and LDFLAGS, and reports what bites on a microcontroller: objects built for different cores or float ABIs, a link line without the core or the float ABI, sections without garbage collection, a build without debug information or without warnings. Use it after writing or changing a Makefile, a CMake toolchain file or the flags of a build. It knows the flags of GCC and Clang and reads the flags only, not the code.
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": {
"flags": "<flags>"
},
"name": "check_build_flags"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | Yes | The command lines or lists of flags, one command per line: a compile line and the link line, or the values of CFLAGS and LDFLAGS. |