zephyr/subsys/debug/symtab/CMakeLists.txt
Yong Cong Sin 13a5c8aad7 debug: symtab: fix linking issue due to variable redefinition
Employs the same linkonce magic of sw_isr_table to fix the
multiple definition of the symtab variables issue that I
get in my application build that doesn't use `west`.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-05-30 16:52:01 -05:00

16 lines
254 B
CMake

# Copyright (c) 2024 Meta Platforms
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources(
symtab.c
)
add_library(symtab
symtab_stub.c
)
target_link_libraries(symtab zephyr_interface)
zephyr_library_link_libraries(symtab)