mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
This commit is contained in:
parent
a0c5314c2d
commit
6c5ff4207e
@ -68,6 +68,8 @@ fi
|
|||||||
if [ $(osxcross-cmp $GCC_VERSION '==' 6.3.0) == 1 ]; then
|
if [ $(osxcross-cmp $GCC_VERSION '==' 6.3.0) == 1 ]; then
|
||||||
# https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/darwin-driver.c?r1=244010&r2=244009&pathrev=244010
|
# https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/darwin-driver.c?r1=244010&r2=244009&pathrev=244010
|
||||||
patch -p1 < $PATCH_DIR/darwin-driver.c.patch
|
patch -p1 < $PATCH_DIR/darwin-driver.c.patch
|
||||||
|
# https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00129.html
|
||||||
|
patch -p1 < $PATCH_DIR/gcc-6.3.0-buildfix.patch
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
|
11
patches/gcc-6.3.0-buildfix.patch
Normal file
11
patches/gcc-6.3.0-buildfix.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- trunk/gcc/ubsan.c 2016/09/03 09:20:03 239970
|
||||||
|
+++ trunk/gcc/ubsan.c 2016/09/03 10:57:05 239971
|
||||||
|
@@ -1469,7 +1469,7 @@
|
||||||
|
|
||||||
|
expanded_location xloc = expand_location (loc);
|
||||||
|
if (xloc.file == NULL || strncmp (xloc.file, "\1", 2) == 0
|
||||||
|
- || xloc.file == '\0' || xloc.file[0] == '\xff'
|
||||||
|
+ || xloc.file[0] == '\0' || xloc.file[0] == '\xff'
|
||||||
|
|| xloc.file[1] == '\xff')
|
||||||
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user