Skip to content

Commit

Permalink
Merge pull request #18 from carapace-sh/fix-patch
Browse files Browse the repository at this point in the history
fix patch
  • Loading branch information
rsteube authored Oct 27, 2024
2 parents d19624c + 0548b67 commit 84e7ee5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions termux/6-src-runtime-cgo-gcc_android.c.patch/patch.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
diff -u -r ../go/src/runtime/cgo/gcc_android.c ./src/runtime/cgo/gcc_android.c
--- ../go/src/runtime/cgo/gcc_android.c 2015-08-06 00:36:35.000000000 -0400
+++ ./src/runtime/cgo/gcc_android.c 2015-08-16 16:08:05.346940583 -0400
@@ -11,21 +11,11 @@
{
va_list ap;

- // Write to both stderr and logcat.
- //
- // When running from an .apk, /dev/stderr and /dev/stdout
- // redirect to /dev/null. And when running a test binary
- // via adb shell, it's easy to miss logcat.
-
fprintf(stderr, "runtime/cgo: ");
va_start(ap, format);
vfprintf(stderr, format, ap);
va_end(ap);
fprintf(stderr, "\n");

- va_start(ap, format);
- __android_log_vprint(ANDROID_LOG_FATAL, "runtime/cgo", format, ap);
- va_end(ap);
-
abort();
}

0 comments on commit 84e7ee5

Please sign in to comment.