Skip to content

Instantly share code, notes, and snippets.

diff -ur android-ndk-r7.orig/build/tools/build-gcc.sh android-ndk-r7/build/tools/build-gcc.sh
--- android-ndk-r7.orig/build/tools/build-gcc.sh 2011-10-24 16:37:26.000000000 +0200
+++ android-ndk-r7/build/tools/build-gcc.sh 2012-02-04 14:49:36.705898017 +0100
@@ -45,6 +45,9 @@
GDB_VERSION=$DEFAULT_GDB_VERSION
register_var_option "--gdb-version=<version>" GDB_VERSION "Specify gdb version"
+MPC_VERSION=0.8.1
+register_var_option "--mpc-version=<version>" MPC_VERSION "Specify mpc version"
+
diff -r 80285454df3c d/druntime/rt/memory.d
--- a/d/druntime/rt/memory.d Mon Jan 30 21:27:11 2012 +0000
+++ b/d/druntime/rt/memory.d Sat Feb 04 18:24:09 2012 +0100
@@ -31,11 +31,11 @@
}
version( linux )
{
- version = SimpleLibcStackEnd;
+ version = bionic;
#!/bin/sh
BASE_DIR=/home/jpf/Dokumente/Code/android-ndk
cd $BASE_DIR
mkdir toolchain-src
cd toolchain-src
git clone https://android.googlesource.com/toolchain/build.git
diff -ur android-ndk/toolchain-src/build/Makefile.in android-ndk-mingw32/toolchain-src/build/Makefile.in
--- android-ndk/toolchain-src/build/Makefile.in 2012-02-04 19:01:55.373827700 +0100
+++ android-ndk-mingw32/toolchain-src/build/Makefile.in 2012-02-05 18:15:04.998216904 +0100
@@ -350,14 +350,14 @@
.PHONY: config-host-libbfd build-host-libbfd install-host-libbfd
config-host-libbfd: stmp-config-host-libbfd
LIBBFD_CONFIG_ARGS=--prefix=$(prefix) \
- --target=${target_alias} --host=${host} --build=${build} \
+ --target=${target_alias} --host=${cur_host} --build=${build} \
$(baseargs) --disable-shared \
diff -ur android-ndk/android-ndk-r7/build/tools/prebuilt-common.sh android-ndk-mingw32/android-ndk-r7/build/tools/prebuilt-common.sh
--- android-ndk/android-ndk-r7/build/tools/prebuilt-common.sh 2011-11-03 13:24:57.000000000 +0100
+++ android-ndk-mingw32/android-ndk-r7/build/tools/prebuilt-common.sh 2012-02-05 13:31:53.317388191 +0100
@@ -697,7 +697,7 @@
# detect build tag
case $HOST_TAG in
linux-x86)
- ABI_CONFIGURE_BUILD=i386-linux-gnu
+ ABI_CONFIGURE_BUILD=i486-linux-gnu
;;
-src/gdc/d/phobos2/config/unix.x3 config/unix.x3
--- ../toolchain-src/gdc/d/phobos2/config/unix.x3 2012-02-12 11:56:15.319606598 +0100
+++ config/unix.x3 2012-02-15 19:12:27.311007758 +0100
@@ -179,7 +179,7 @@
x3_out_type_ex("pthread_rwlockattr_t", NULL, X3_STRUCT_FALLBACK);
x3_out_type_ex("pthread_spinlock_t", NULL, X3_STRUCT_FALLBACK);
//x3_pop_optional();
- x3_out_enum(NULL, NULL, "^PTHREAD_CANCEL_.*", NULL);
+ //x3_out_enum(NULL, NULL, "^PTHREAD_CANCEL_.*", NULL);
diff -ur android-ndk-r7/build/tools/prebuilt-common.sh android-ndk-r7.new/build/tools/prebuilt-common.sh
--- android-ndk-r7/build/tools/prebuilt-common.sh 2012-02-18 14:49:37.619625917 -0600
+++ android-ndk-r7.new/build/tools/prebuilt-common.sh 2012-02-18 09:27:26.749461521 -0600
@@ -554,9 +554,9 @@
;;
esac
if [ "$TRY64" = "yes" ]; then
- ABI_CONFIGURE_HOST=amd64-mingw32msvc
+ ABI_CONFIGURE_HOST=x86_64-w64-mingw32
else
diff --git a/libphobos/libdruntime/core/runtime.d b/libphobos/libdruntime/core/runtime.d
index 42e09ac..cc426dd 100644
--- a/libphobos/libdruntime/core/runtime.d
+++ b/libphobos/libdruntime/core/runtime.d
@@ -42,11 +42,14 @@ private
version(GNU)
{
- import gcc.unwind;
- import core.demangle;
/**
* This module contains parsers, formatters and data types for the _http
* protocol.
*
* Headers from rfc2616 which are currently not implemented:
* $(UL
* $(LI $(LINK2 http://tools.ietf.org/html/rfc2616#section-14.8, AuthorizationHeader))
* $(LI $(LINK2 http://tools.ietf.org/html/rfc2616#section-14.9, CacheControlHeader))
* $(LI $(LINK2 http://tools.ietf.org/html/rfc2616#section-14.33, ProxyAuthenticateHeader))
* $(LI $(LINK2 http://tools.ietf.org/html/rfc2616#section-14.34, ProxyAuthorizationHeader))
///Seed using an InputRange
void seedRange(T)(T range) if(isInputRange!T && is(Unqual!(ElementType!T) == UIntType))
{
int j;
for(j = 0; j < n && !range.empty; ++j, range.popFront())
{
mt[j] = range.front;
}
mti = n;