Skip to content
Back to skills

Polyspace Configure Build Options

ASecurity

Creates Polyspace build options files from build commands or compilation databases. Use when the user asks to "configure build options", "create build options file", "set up Polyspace build", or needs to configure compiler settings for Polyspace analysis.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 17, 2026
toolsdatabase

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 17, 2026

npx -y skills add zrwangems/dsh-zrwang-plugin --skill polyspace-configure-build-options --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Polyspace Configure Build Options?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Polyspace Configure Build Options
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zrwangems-polyspace-configure-build-options/badge)](https://www.skillsdirectory.com/skills/zrwangems-polyspace-configure-build-options)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: polyspace-configure-build-options
description: Creates Polyspace build options files from build commands or compilation databases. Use when the user asks to "configure build options", "create build options file", "set up Polyspace build", or needs to configure compiler settings for Polyspace analysis.
license: MathWorks BSD-3-Clause
metadata:
  version: "1.3"
---
# How to Configure Build Options for Polyspace

Create a Polyspace build options file from either a build command (sniffing) or a compilation database (`compile_commands.json`). Exactly one source must be provided.

## Using the MCP tool

**If the `configure_build_options_from_build_command` or `configure_build_options_from_ccdb` tool is available**, use one depending on your source:

- To sniff a **build command**, use `configure_build_options_from_build_command`:
  - `build_options_file_path` (required): absolute path to the output file to create
  - `build_command` (required): the project build command to sniff
  - `extra_polyspace_configure_options_file_path` (optional): extra polyspace-configure options
  - `include_project_sources` (optional)
- To use a **compilation database**, use `configure_build_options_from_ccdb`:
  - `build_options_file_path` (required): absolute path to the output file to create
  - `ccdb_file_path` (required): absolute path to `compile_commands.json`
  - `extra_polyspace_configure_options_file_path` (optional): extra polyspace-configure options
  - `include_project_sources` (optional)

Both tools take `include_project_sources`. Set it to `true` to write the discovered source
files into the generated options file — that is what lets a whole-project Bug Finder or Code
Prover run omit `file_paths`. It defaults to `false`, which omits the source list so Polyspace
as You Code can supply its own single file; leave it `false` for as-you-code.

**macOS**: Build command sniffing (`build_command`) is not supported on macOS because System Integrity Protection (SIP) blocks `polyspace-configure` from tracing processes. Use `ccdb_file_path` with a `compile_commands.json` instead.

## Otherwise using the binary directly

**Otherwise**, read `references/cli-usage.md` in this skill's directory for direct command-line usage with `polyspace-configure`.

## Finding a compilation database

- **CMake**: add `-DCMAKE_EXPORT_COMPILE_COMMANDS=ON` to your CMake configure command
- **Bear**: run `bear -- make` (or your build command) to generate `compile_commands.json`
- **Other build systems**: check if your build system has native support for generating `compile_commands.json`

## Common issues

- Wrong compiler detected — specify the compiler explicitly in the extra options file
- Missing include paths — ensure the build command or compilation database is complete
- To see all available polyspace-configure options, run `polyspace-configure -help`

---

Copyright 2026 The MathWorks, Inc.

---

Files in this skill

  • SKILL.md2.9 KB
  • manifest.yaml445 B
  • references/cli-usage.md1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.