Skip to content
Commit d8df801f authored by Mark Ruvald Pedersen's avatar Mark Ruvald Pedersen Committed by Marti Bolivar
Browse files

cmake: Fix dependencies so builds are sparse again



In cmake we use target_byproducts() to register dependence on the map
file alongside the executable for it - this makes sense.
Thus if the map file is missing, ninja will detect and issue a linker
command again. However after that, cmake was instructed to rename the
map file. Thus a 2nd round of ninja, which should be a no-op, is not as
the registered byproduct file is missing.

To keep this static, and to keep the map file alongside the elf file, we
will instead copy the map file.

Signed-off-by: default avatarMark Ruvald Pedersen <mped@oticon.com>
parent 82ac3fa0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment