fix(cmake): don't emit section directive when embedding files on host

This commit is contained in:
Ivan Grokhotkov 2023-11-27 10:44:56 +01:00
parent 6f9038809a
commit b56bb7d8e4
No known key found for this signature in database
GPG Key ID: 1E050E141B280628

View File

@ -71,7 +71,9 @@ endif()
append_line(" */")
append_line(".data")
append_line("#if !defined (__APPLE__) && !defined (__linux__)")
append_line(".section .rodata.embedded")
append_line("#endif")
make_and_append_identifier("${varname}")
make_and_append_identifier("_binary_${varname}_start" "for objcopy compatibility")
append("${data}")