Skip to content
Commit 47544e43 authored by Samuel Martin's avatar Samuel Martin Committed by Peter Korsgaard
Browse files

toolchainfile.cmake.in: do not force the CMAKE_{C, CXX}_FLAGS to the cache

Fix #7280 [1]

When the FORCE option is passed to the set command, the variable is
added/updated in the CMake cache every single time CMake processes this
command.

Because the toolchainfile.cmake prepends architecture/toolchain flags
to the CMAKE_{C,CXX}_FLAGS, this makes the CFLAGS being updated in the
generated Makefiles each time one reconfigures its project. So it
forces the compilation of everything, even when nothing has changed.

[1] https://bugs.busybox.net/show_bug.cgi?id=7280



Signed-off-by: default avatarSamuel Martin <s.martin49@gmail.com>
Tested-by: default avatarThomas De Schampheleire <thomas.de.schampheleire@gmail.com>
(tested the SimpleApp reproduction scenario described in the bug report)
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 72d453cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment