File tree Expand file tree Collapse file tree 2 files changed +8
-23
lines changed Expand file tree Collapse file tree 2 files changed +8
-23
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ idf_component_register(
3
3
SRCS
4
4
/dev/null
5
5
PRIV_INCLUDE_DIRS "."
6
- LDFRAGMENTS "linker.lf"
7
6
)
8
7
9
8
idf_build_get_property(target IDF_TARGET)
@@ -43,7 +42,7 @@ endforeach()
43
42
target_compile_options (${COMPONENT_LIB} PUBLIC "$<$<COMPILE_LANGUAGE:Swift>:SHELL:
44
43
-target riscv32-none-none-eabi
45
44
-Xfrontend -function-sections -enable-experimental-feature Embedded -wmo -parse-as-library -Osize
46
- -Xcc -march=${march_flag} -Xcc -mabi=${mabi_flag}
45
+ -Xcc -march=${march_flag} -Xcc -mabi=${mabi_flag} -Xcc -fno-pic -Xcc -fno-pie
47
46
-pch-output-dir /tmp
48
47
-Xfrontend -enable-single-module-llvm-emission
49
48
${SWIFT_INCLUDES}
@@ -63,3 +62,10 @@ target_sources(${COMPONENT_LIB}
63
62
Main.swift
64
63
FileSystem.swift
65
64
)
65
+
66
+ add_custom_command (
67
+ TARGET ${COMPONENT_LIB}
68
+ POST_BUILD
69
+ COMMAND ${CMAKE_OBJCOPY} --remove-section .swift_modhash
70
+ $<TARGET_FILE:${COMPONENT_LIB} > $<TARGET_FILE:${COMPONENT_LIB} >
71
+ )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments