We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1b5c48 commit bf3cd63Copy full SHA for bf3cd63
plugin/src/main/resources/com/nishtahir/linker-wrapper.py
@@ -7,9 +7,12 @@
7
8
args = [os.environ['RUST_ANDROID_GRADLE_CC'], os.environ['RUST_ANDROID_GRADLE_CC_LINK_ARG']] + sys.argv[1:]
9
10
-# The gcc library is not included in ndk version 23.
11
-if 23 == int(os.environ['CARGO_NDK_MAJOR_VERSION']):
12
- args.remove("-lgcc")
+# The gcc library is not included starting from ndk version 23.
+ndk_major_version = os.environ['CARGO_NDK_MAJOR_VERSION']
+if ndk_major_version.isdigit():
13
+ if 23 <= int(ndk_major_version):
14
+ args.remove("-lgcc")
15
+ args.append("-lunwind")
16
17
# This only appears when the subprocess call fails, but it's helpful then.
18
printable_cmd = ' '.join(pipes.quote(arg) for arg in args)
0 commit comments