mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-06 14:14:33 +02:00
build: fallback to dwarf-4 format because of lesser binary size (dwarf-5 is by default in GCC 11)
This commit is contained in:
@@ -103,6 +103,9 @@ function(__build_set_default_build_specifications)
|
|||||||
"-Wextra"
|
"-Wextra"
|
||||||
"-Wno-unused-parameter"
|
"-Wno-unused-parameter"
|
||||||
"-Wno-sign-compare"
|
"-Wno-sign-compare"
|
||||||
|
# Default is dwarf-5 since GCC 11, fallback to dwarf-4 because of binary size
|
||||||
|
# TODO: IDF-5160
|
||||||
|
"-gdwarf-4"
|
||||||
# always generate debug symbols (even in release mode, these don't
|
# always generate debug symbols (even in release mode, these don't
|
||||||
# go into the final binary so have no impact on size
|
# go into the final binary so have no impact on size
|
||||||
"-ggdb")
|
"-ggdb")
|
||||||
|
Reference in New Issue
Block a user