Following the footstep of GCC/Clang cmake code to remove TOOLCHAIN_LIBS, xcc also has it removed and utilizes something similar to c_library to link the HAL library. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
9 lines
388 B
CMake
9 lines
388 B
CMake
# Copyright (c) 2024 Nordic Semiconductor
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set_linker_property(NO_CREATE PROPERTY c_library "-lc")
|
|
set_linker_property(NO_CREATE PROPERTY rt_library "-lgcc")
|
|
set_linker_property(NO_CREATE PROPERTY c++_library "-lstdc++")
|
|
set_linker_property(NO_CREATE PROPERTY hal_library "-lhal")
|
|
set_linker_property(PROPERTY link_order_library "c;rt;hal")
|