Skip to content

Commit da97be1

Browse files
committed
try to remove -arch i386 by patching CMakeLists.txt
1 parent f733b29 commit da97be1

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

travis/build-wheels-osx.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ echo 'PIP and brew installs'
1010

1111
pip install $BUILD_DEPENDS
1212

13+
cd opencv
14+
15+
echo "Apply patch"
16+
17+
git apply ../travis/disable_i386.patch
18+
1319
echo 'Config make'
1420

15-
cd opencv
1621
mkdir build
1722
cd build
1823

travis/disable_i386.patch

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index af5e2c1..4ef83c1 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -192,6 +192,8 @@ if(MINGW)
6+
endif()
7+
endif()
8+
9+
+string(REPLACE "-arch i386" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
10+
+
11+
# ----------------------------------------------------------------------------
12+
# OpenCV cmake options
13+
# ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)