name: gcc
binary: gcc
aliases:
- g++
category:
- compiler
lang:
- c
- cpp
- objective-c
summary: GNU Compiler Collection C and C++ compiler.
homepage: https://gcc.gnu.org/
docs: https://gcc.gnu.org/onlinedocs/
detect:
version_args:
- --version
local:
files: []
dirs: []
package_json:
package_manager_prefixes: []
use_when:
- Compile C or C++ projects with GCC
avoid_when:
- The project build system selects another compiler
risk:
level: medium
effects:
- execute_code
- read_files
- write_files
requires_auth: false
destructive: false
confirmation_required_for:
- changing compiler toolchains
guardrails:
- Prefer project build scripts over ad hoc compiler commands.