in plugin/src/main/resources/com/nishtahir/linker-wrapper.py [0:0]
def update_in_place(arglist):
# The `gcc` library is not included starting from NDK version 23.
# Work around by using `unwind` replacement.
ndk_major_version = os.environ["CARGO_NDK_MAJOR_VERSION"]
if ndk_major_version.isdigit():
if 23 <= int(ndk_major_version):
for i, arg in enumerate(arglist):
if arg.startswith("-lgcc"):
# This is one way to preserve line endings.
arglist[i] = "-lunwind" + arg[len("-lgcc") :]