Skip to content

Commit

Permalink
remove linker fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
georgik committed Nov 8, 2024
1 parent 1b37b4f commit 8841506
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 23 deletions.
10 changes: 8 additions & 2 deletions main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ idf_component_register(
SRCS
/dev/null
PRIV_INCLUDE_DIRS "."
LDFRAGMENTS "linker.lf"
)

idf_build_get_property(target IDF_TARGET)
Expand Down Expand Up @@ -43,7 +42,7 @@ endforeach()
target_compile_options(${COMPONENT_LIB} PUBLIC "$<$<COMPILE_LANGUAGE:Swift>:SHELL:
-target riscv32-none-none-eabi
-Xfrontend -function-sections -enable-experimental-feature Embedded -wmo -parse-as-library -Osize
-Xcc -march=${march_flag} -Xcc -mabi=${mabi_flag}
-Xcc -march=${march_flag} -Xcc -mabi=${mabi_flag} -Xcc -fno-pic -Xcc -fno-pie
-pch-output-dir /tmp
-Xfrontend -enable-single-module-llvm-emission
${SWIFT_INCLUDES}
Expand All @@ -63,3 +62,10 @@ target_sources(${COMPONENT_LIB}
Main.swift
FileSystem.swift
)

add_custom_command(
TARGET ${COMPONENT_LIB}
POST_BUILD
COMMAND ${CMAKE_OBJCOPY} --remove-section .swift_modhash
$<TARGET_FILE:${COMPONENT_LIB}> $<TARGET_FILE:${COMPONENT_LIB}>
)
21 changes: 0 additions & 21 deletions main/linker.lf

This file was deleted.

0 comments on commit 8841506

Please sign in to comment.