Skip to content

Commit 8d5c8bc

Browse files
committed
Fixup
1 parent 8409cd9 commit 8d5c8bc

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

1k/1kiss.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,6 +1836,10 @@ if (!$setupOnly) {
18361836
}
18371837
$1k.println("cmake --build $BUILD_DIR $BUILD_ALL_OPTIONS")
18381838
cmake --build $BUILD_DIR $BUILD_ALL_OPTIONS | Out-Host
1839+
if (!$?) {
1840+
Set-Location $stored_cwd
1841+
exit $LASTEXITCODE
1842+
}
18391843

18401844
if ($options.i) {
18411845
$install_args = @($BUILD_DIR, '--config', $optimize_flag)
@@ -1948,3 +1952,5 @@ if (!$setupOnly) {
19481952
compilerID = $TOOLCHAIN_NAME
19491953
}
19501954
}
1955+
1956+
exit $LASTEXITCODE

build.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@ Foreach ($lib_name in $libs) {
212212
$patch_script = Join-Path $_1k_root "src/$lib_name/patch1.ps1"
213213
if (Test-Path $patch_script -PathType Leaf) {
214214
&$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+
}
215221
}
216222

217223
$install_script = Join-Path $_1k_root "src/$lib_name/install1.ps1"
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+

0 commit comments

Comments
 (0)