@@ -28,19 +28,6 @@ GENDIR=tensorflow/contrib/makefile/gen/
28
28
LIBDIR=${GENDIR} lib
29
29
LIB_PREFIX=libtensorflow-core
30
30
31
- # TODO(petewarden) - Some new code in Eigen triggers a clang bug, so work
32
- # around it by patching the source.
33
- sed -e ' s#static uint32x4_t p4ui_CONJ_XOR = vld1q_u32( conj_XOR_DATA );#static uint32x4_t p4ui_CONJ_XOR; // = vld1q_u32( conj_XOR_DATA ); - Removed by script#' \
34
- -i ' ' \
35
- tensorflow/contrib/makefile/downloads/eigen-latest/eigen/src/Core/arch/NEON/Complex.h
36
- sed -e ' s#static uint32x2_t p2ui_CONJ_XOR = vld1_u32( conj_XOR_DATA );#static uint32x2_t p2ui_CONJ_XOR;// = vld1_u32( conj_XOR_DATA ); - Removed by scripts#' \
37
- -i ' ' \
38
- tensorflow/contrib/makefile/downloads/eigen-latest/eigen/src/Core/arch/NEON/Complex.h
39
- sed -e ' s#static uint64x2_t p2ul_CONJ_XOR = vld1q_u64( p2ul_conj_XOR_DATA );#static uint64x2_t p2ul_CONJ_XOR;// = vld1q_u64( p2ul_conj_XOR_DATA ); - Removed by script#' \
40
- -i ' ' \
41
- tensorflow/contrib/makefile/downloads/eigen-latest/eigen/src/Core/arch/NEON/Complex.h
42
-
43
- make -f tensorflow/contrib/makefile/Makefile cleantarget
44
31
make -f tensorflow/contrib/makefile/Makefile \
45
32
TARGET=IOS IOS_ARCH=ARMV7 LIB_NAME=${LIB_PREFIX} -armv7.a OPTFLAGS=" $1 " $2 $3
46
33
if [ $? -ne 0 ]
49
36
exit 1
50
37
fi
51
38
52
- make -f tensorflow/contrib/makefile/Makefile cleantarget
53
39
make -f tensorflow/contrib/makefile/Makefile \
54
40
TARGET=IOS IOS_ARCH=ARMV7S LIB_NAME=${LIB_PREFIX} -armv7s.a OPTFLAGS=" $1 " $2 $3
55
41
if [ $? -ne 0 ]
58
44
exit 1
59
45
fi
60
46
61
- make -f tensorflow/contrib/makefile/Makefile cleantarget
62
47
make -f tensorflow/contrib/makefile/Makefile \
63
48
TARGET=IOS IOS_ARCH=ARM64 LIB_NAME=${LIB_PREFIX} -arm64.a OPTFLAGS=" $1 " $2 $3
64
49
if [ $? -ne 0 ]
67
52
exit 1
68
53
fi
69
54
70
- make -f tensorflow/contrib/makefile/Makefile cleantarget
71
55
make -f tensorflow/contrib/makefile/Makefile \
72
56
TARGET=IOS IOS_ARCH=I386 LIB_NAME=${LIB_PREFIX} -i386.a OPTFLAGS=" $1 " $2 $3
73
57
if [ $? -ne 0 ]
76
60
exit 1
77
61
fi
78
62
79
- make -f tensorflow/contrib/makefile/Makefile cleantarget
80
63
make -f tensorflow/contrib/makefile/Makefile \
81
64
TARGET=IOS IOS_ARCH=X86_64 LIB_NAME=${LIB_PREFIX} -x86_64.a OPTFLAGS=" $1 " $2 $3
82
65
if [ $? -ne 0 ]
86
69
fi
87
70
88
71
lipo \
89
- ${LIBDIR} /${LIB_PREFIX} -armv7.a \
90
- ${LIBDIR} /${LIB_PREFIX} -armv7s.a \
91
- ${LIBDIR} /${LIB_PREFIX} -arm64.a \
92
- ${LIBDIR} /${LIB_PREFIX} -i386.a \
93
- ${LIBDIR} /${LIB_PREFIX} -x86_64.a \
72
+ ${LIBDIR} /ios_ARMV7/ ${LIB_PREFIX} -armv7.a \
73
+ ${LIBDIR} /ios_ARMV7S/ ${LIB_PREFIX} -armv7s.a \
74
+ ${LIBDIR} /ios_ARM64/ ${LIB_PREFIX} -arm64.a \
75
+ ${LIBDIR} /ios_I386/ ${LIB_PREFIX} -i386.a \
76
+ ${LIBDIR} /ios_X86_64/ ${LIB_PREFIX} -x86_64.a \
94
77
-create \
95
78
-output ${LIBDIR} /${LIB_PREFIX} .a
0 commit comments