Skip to content

Commit fb0b35c

Browse files
committed
Merge commit 'ec1fc5233162bae4a82870d244e4aa41424654f4'
2 parents b0897e3 + ec1fc52 commit fb0b35c

File tree

1 file changed

+4
-2
lines changed
  • super_native_extensions/cargokit/build_tool/lib/src

1 file changed

+4
-2
lines changed

super_native_extensions/cargokit/build_tool/lib/src/builder.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ class RustBuilder {
148148
'run',
149149
_toolchain,
150150
'cargo',
151-
environment.glibcVersion != null ? 'zigbuild' : 'build',
151+
(target.android == null && environment.glibcVersion != null)
152+
? 'zigbuild'
153+
: 'build',
152154
...extraArgs,
153155
'--manifest-path',
154156
manifestPath,
@@ -157,7 +159,7 @@ class RustBuilder {
157159
if (!environment.configuration.isDebug) '--release',
158160
'--target',
159161
target.rust +
160-
(environment.glibcVersion != null
162+
((target.android == null && environment.glibcVersion != null)
161163
? '.${environment.glibcVersion!}'
162164
: ""),
163165
'--target-dir',

0 commit comments

Comments
 (0)