Skip to content

Commit d8eca33

Browse files
committed
Fix clang path
1 parent 930d414 commit d8eca33

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tool/compile_sqlite.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ Future<void> _compileApple(
6565

6666
Future<void> _compileAndroid(
6767
String triple, String abiName, bool sqlite3Ciphers) async {
68+
// https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md#environment-variables-1
69+
final ndk28 = Platform.environment['ANDROID_NDK_LATEST_HOME']!;
70+
final clang = '$ndk28/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang';
71+
6872
await _clangCompile(
69-
'/Users/simon/Library/Android/sdk/ndk/28.1.13356709/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang-19',
73+
clang,
7074
triple,
7175
sqlite3Ciphers,
7276
'android-$abiName-sqlite3${sqlite3Ciphers ? 'mc' : ''}.so',

0 commit comments

Comments
 (0)