ndk icon indicating copy to clipboard operation
ndk copied to clipboard

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

Open DanAlbert opened this issue 2 years ago • 1 comments

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

DanAlbert avatar Jan 13 '23 23:01 DanAlbert

Can this be done with generator expressions? $<IF:$<CONFIG:Debug>,,--gc-sections> or something like that should add the flag only when it's not in debug mode. I'm not 100% sure it works when put in the toolchain file level variables, but maybe...

rpavlik avatar Apr 10 '23 14:04 rpavlik