ci: Set symbol_level in libwebrtc gn command #1096
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the build scripts for all supported platforms (Android, iOS, Linux, macOS, and Windows) to set the
symbol_levelbuild argument dynamically based on whether a debug or release build is being performed. The main effect is that debug builds now include more debug symbols (symbol_level=1), while release builds include fewer (symbol_level=0). This change helps balance debuggability in debug builds with smaller binary sizes in release builds.Key changes by theme:
Dynamic Symbol Level Configuration:
build_libwebrtc_android.sh,build_libwebrtc_ios.sh,build_libwebrtc_linux.sh,build_libwebrtc_macos.sh,build_libwebrtc_win.cmd) now set thesymbol_levelargument to1for debug builds and0for release builds, instead of hardcoding the value. [1] [2] [3] [4] [5] [6]Build Argument Updates:
symbol_levelvariable is now passed to thegn genor equivalent build generation commands in all scripts, ensuring consistent symbol level configuration across platforms. [1] [2] [3] [4] [5] [6]These changes improve the maintainability and consistency of our build process across all platforms.