linker_flags_template.cmake 760 B

12345678910111213141516
  1. # coverage is a property holding the linker flag required for coverage support on the toolchain.
  2. # For example, on ld/gcc this would be: -lgcov
  3. # Set the property for the corresponding flags of the given toolchain.
  4. set_property(TARGET linker PROPERTY coverage)
  5. # Linker flags for sanitizing.
  6. check_set_linker_property(TARGET linker APPEND PROPERTY sanitize_address)
  7. check_set_linker_property(TARGET linker APPEND PROPERTY sanitize_undefined)
  8. # Linker flag for printing of memusage.
  9. # Set this flag if the linker supports reporting of memusage as part of link,
  10. # such as ls --print-memory-usage flag.
  11. # If memory reporting is a post build command, please use
  12. # cmake/bintools/bintools.cmake insted.
  13. check_set_linker_property(TARGET linker PROPERTY memusage)