Files
Shivam Deolankar f2a3dd2b62 build: Separate SECTION_FLAGS from OPTIMIZATION_FLAGS
Move -ffunction-sections and -fdata-sections into new SECTION_FLAGS
option to prevent breakage when users override OPTIMIZATION_FLAGS.
Also added documentation for user's to override the flags.

Fixes stack checker undefined reference when OPTIMIZATION_FLAGS=-g.

Also added a copyright field for valid license.

Fixes #5497
2026-03-09 14:49:02 +00:00

20 lines
382 B
YAML

SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- get-string: null
- split: null
- env-assign: null
build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
- enabled-by: true
value:
- -Og
- -g
description: |
Default optimization flags for C and C++ compilers.
enabled-by: true
links: []
name: OPTIMIZATION_FLAGS
type: build