android / android/ndk

[BUG] remove --gc-sections from debug cmake variant with new toolchain file

Open
#1,826 1 comment 0 reactions 0 assignees View on GitHub
bug cmake-new-toolchain
Dominant language
No language data
Stars
2.3k
Forks
310
PR merge metrics
No merged PRs in 30d

Description

### Description

https://github.com/android/ndk/issues/1813 wasn't able to be fixed for the new toolchain file because CMake doesn't offer us that level of control. We need to get CMake fixed to allow us to fix this for that configuration.

### Affected versions

r25, Canary

### Canary version

_No response_

### Host OS

Linux, Mac, Windows

### Host OS version

any

### Affected ABIs

armeabi-v7a, arm64-v8a, x86, x86_64

### Build system

CMake

### Other build system

_No response_

### minSdkVersion

any

### Device API level

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reading this issue alongside android/ndk#1813 and reproducing the debug CMake variant with the new toolchain file across the listed ABIs. Investigate how CMake applies --gc-sections in that configuration; the work is done when the flag can be removed from the debug variant without regressing the supported hosts or ABIs.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.