cmake: Generate correct inline source listings in asm output
Manually provide a source path prefix to objdumppull/207/head
parent
74dfb27c20
commit
ea38115152
|
|
@ -171,7 +171,9 @@ if(CMAKE_CROSSCOMPILING)
|
||||||
|
|
||||||
# produce ASM listing
|
# produce ASM listing
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET firmware POST_BUILD COMMAND ${CMAKE_OBJDUMP} -CSd firmware > firmware.asm
|
TARGET firmware POST_BUILD
|
||||||
|
COMMAND
|
||||||
|
${CMAKE_OBJDUMP} --prefix ${CMAKE_SOURCE_DIR} -CSd firmware > firmware.asm
|
||||||
)
|
)
|
||||||
|
|
||||||
# inform about the firmware's size in terminal
|
# inform about the firmware's size in terminal
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue