File tree Expand file tree Collapse file tree 3 files changed +51
-0
lines changed Expand file tree Collapse file tree 3 files changed +51
-0
lines changed Original file line number Diff line number Diff line change @@ -1836,6 +1836,10 @@ if (!$setupOnly) {
1836
1836
}
1837
1837
$1k.println (" cmake --build $BUILD_DIR $BUILD_ALL_OPTIONS " )
1838
1838
cmake -- build $BUILD_DIR $BUILD_ALL_OPTIONS | Out-Host
1839
+ if (! $? ) {
1840
+ Set-Location $stored_cwd
1841
+ exit $LASTEXITCODE
1842
+ }
1839
1843
1840
1844
if ($options.i ) {
1841
1845
$install_args = @ ($BUILD_DIR , ' --config' , $optimize_flag )
@@ -1948,3 +1952,5 @@ if (!$setupOnly) {
1948
1952
compilerID = $TOOLCHAIN_NAME
1949
1953
}
1950
1954
}
1955
+
1956
+ exit $LASTEXITCODE
Original file line number Diff line number Diff line change @@ -212,6 +212,12 @@ Foreach ($lib_name in $libs) {
212
212
$patch_script = Join-Path $_1k_root " src/$lib_name /patch1.ps1"
213
213
if (Test-Path $patch_script - PathType Leaf) {
214
214
& $patch_script $lib_src
215
+ } elseif (Test-Path (Join-Path $lib_src ' .git' )) {
216
+ $patches = Get-ChildItem (Split-Path $patch_script - Parent) - Filter ' *.patch'
217
+ foreach ($patch_file in $patches ) {
218
+ println " apply patch: $patch_file "
219
+ git - C $lib_src apply $patch_file
220
+ }
215
221
}
216
222
217
223
$install_script = Join-Path $_1k_root " src/$lib_name /install1.ps1"
Original file line number Diff line number Diff line change
1
+ From ad736dcb4c30ea23da2363d13d385c0b34703124 Mon Sep 17 00:00:00 2001
2
+ From: halx99 <halx99@live.com>
3
+ Date: Sat, 25 May 2024 23:44:49 +0800
4
+ Subject: [PATCH] fix android armv7 build
5
+
6
+ ---
7
+ src/lib/ares_event_configchg.c | 16 +++++++++++++++-
8
+ 1 file changed, 15 insertions(+), 1 deletion(-)
9
+
10
+ diff --git a/src/lib/ares_event_configchg.c b/src/lib/ares_event_configchg.c
11
+ index dc6e465..eb53fe4 100644
12
+ --- a/src/lib/ares_event_configchg.c
13
+ +++ b/src/lib/ares_event_configchg.c
14
+ @@ -33,7 +33,21 @@ static void ares_event_configchg_reload(ares_event_thread_t *e)
15
+ ares_reinit(e->channel);
16
+ }
17
+
18
+ - #ifdef __linux__
19
+ + #ifdef __ANDROID__
20
+ +
21
+ + ares_status_t ares_event_configchg_init(ares_event_configchg_t **configchg,
22
+ + ares_event_thread_t *e)
23
+ + {
24
+ + /* No ability */
25
+ + return ARES_ENOTIMP;
26
+ + }
27
+ +
28
+ + void ares_event_configchg_destroy(ares_event_configchg_t *configchg)
29
+ + {
30
+ + /* No-op */
31
+ + }
32
+ +
33
+ + #elif defined(__linux__)
34
+
35
+ # include <sys/inotify.h>
36
+
37
+ - -
38
+ 2.39.0.windows.2
39
+
You can’t perform that action at this time.
0 commit comments