mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-16 04:22:22 +00:00
fix(linux): Fixed linux target build failure in esp_app_format for MacOS
This commit fixes a build failure in the esp_app_format component for the linux target when built on a MacOS machine.
This commit is contained in:
@@ -20,7 +20,11 @@ static const char *TAG = "app_init";
|
||||
#endif
|
||||
|
||||
// Application version info
|
||||
#if defined(__APPLE__) && CONFIG_IDF_TARGET_LINUX
|
||||
const __attribute__((weak)) __attribute__((section("__RODATA_DESC,.rodata_desc"))) esp_app_desc_t esp_app_desc = {
|
||||
#else
|
||||
const __attribute__((weak)) __attribute__((section(".rodata_desc"))) esp_app_desc_t esp_app_desc = {
|
||||
#endif /* #if defined(__APPLE__) && CONFIG_IDF_TARGET_LINUX */
|
||||
.magic_word = ESP_APP_DESC_MAGIC_WORD,
|
||||
#ifdef CONFIG_APP_EXCLUDE_PROJECT_VER_VAR
|
||||
.version = "",
|
||||
|
||||
Reference in New Issue
Block a user