Configurazione delle sorgenti e delle opzioni di build
R2026bSe si utilizza un comando di build come make o cmake per creare il codice sorgente, oppure se è possibile generare un database di compilazione JSON utilizzando il sistema di build, è possibile creare un progetto Polyspace® Platform dal comando di build o dal database di compilazione. I file sorgente e le opzioni di build nel progetto Polyspace Platform sono determinati in base alle invocazioni del compiler nel comando di build o nel database di compilazione.
In caso contrario, impostare esplicitamente le opzioni nella configurazione della build. Specificando il compiler per l'opzione Toolchain di compilazione (Analisi statica), si consente all'analizzatore di riconoscere le parole chiave specifiche del compiler. Aggirare eventuali errori di analisi correlati alla build utilizzando opzioni come Definizioni del preprocessore (-D) o Comando/script da applicare ai file preprocessati (-post-preprocessing-command).
Funzioni
polyspace-configure | (System Command) Create Polyspace Platform project, workspace, or options file from build command or compilation database |
Opzioni Polyspace
Argomenti
Come iniziare
- Configure Sources and Build Options in Project for Polyspace Analysis and Testing
Set build options in Polyspace project configuration, generate source paths and build options using build command or compilation database. - Information Gathered from Build Systems for Polyspace Analysis and Testing
Learn what information is extracted when you trace your build command to create a Polyspace Platform project.
Configurazione delle opzioni utilizzando i comandi di build
- Create Polyspace Platform Project from Build Command in User Interface
Create a project in the Polyspace Platform user interface from a working build command or compilation database. - Requirements for Polyspace Project Creation from Build Systems
Learn why automatic Polyspace project creation might not work for your build system and how to work around some of the causes. - Select Files for Polyspace Project Using Pattern Matching
Select files to include in Polyspace project or options file using expressions with glob patterns. - Create Polyspace Platform Projects from Builds That Use Makefiles
Reuse build information in makefiles for Polyspace analysis and testing. - Modularize Polyspace Projects by Using Makefile Builds
Create a separate Polyspace project or options file for each binary in makefile build. - Create Polyspace Platform Projects from IDE Builds
Specify source files and configuration options by tracing your Visual Studio® build. - Create Polyspace Platform Projects from CMake Builds
Reuse build information in CMakeLists files for Polyspace analysis and testing. - Create Polyspace Platform Project from Cross-Compiler Build
Create a project with a fully configured template toolchain from a cross-compiler build command.
Configurazione manuale delle opzioni
- Configure Sources and Build Options in Project for Polyspace Analysis and Testing
Set build options in Polyspace project configuration, generate source paths and build options using build command or compilation database. - Selecting Common Toolchain for Static Analysis and Testing
Understand how the static analysis compiler is determined from the compilation toolchain that you select for testing. - Provide Standard Library Headers for Polyspace Analysis
Find paths to C or C++ standard library headers from your compiler and specify the paths in your Polyspace project. - Remove or Replace Keywords Before Compilation
Replace or remove keywords from preprocessed code to avoid compilation errors. - Gather Compilation Options Efficiently for Polyspace Analysis
Put workarounds for compilation errors into a single file and include that file in analysis.
Supporto per gli standard e le estensioni del linguaggio C/C++
- C/C++ Language Standard Used in Polyspace Analysis
See supported language standards and the default standard used in Polyspace analysis.
- Keil or IAR Language Extensions Supported with Polyspace
Find which Keil or IAR-specific extensions of the C language standard are supported for verification.