apache / apache/nuttx

ensure files are rebuilt if any build flag is changed

Open
#1,768 0 comments 0 reactions 0 assignees View on GitHub
Area: Build system
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

Since build flags can be affected by choice in menuconfig we need to ensure that any affected files are rebuilt when this happens. The typical case will be when choosing different optimization level but there could be more obscure cases.

Possible solutions would be to:
* seek where these flags change and introduce rules that force a clean before make
* generate some kind of dependency between .o and their flags

I think this is a hard problem to get right but it is an important one to fix.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.