12 lines
478 B
CMake
12 lines
478 B
CMake
# Copyright (c) 2022 Google LLC
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Since lld is a drop in replacement for ld, we can just use ld's flags
|
|
include(${ZEPHYR_BASE}/cmake/linker/ld/${COMPILER}/linker_flags.cmake OPTIONAL)
|
|
|
|
check_set_linker_property(TARGET linker PROPERTY memusage "${LINKERFLAGPREFIX},--print-memory-usage")
|
|
|
|
set_property(TARGET linker PROPERTY no_position_independent "${LINKERFLAGPREFIX},--no-pie")
|
|
|
|
set_property(TARGET linker PROPERTY partial_linking "-r")
|