Skip to content

Commit 0c70a92

Browse files
committed
fix patch command, disable i386 for C compiler too
1 parent da97be1 commit 0c70a92

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

travis/build-wheels-osx.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cd opencv
1414

1515
echo "Apply patch"
1616

17-
git apply ../travis/disable_i386.patch
17+
git apply --ignore-space-change --ignore-whitespace ../travis/disable_i386.patch
1818

1919
echo 'Config make'
2020

travis/disable_i386.patch

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index af5e2c1..4ef83c1 100644
2+
index af5e2c1..cee9726 100644
33
--- a/CMakeLists.txt
44
+++ b/CMakeLists.txt
5-
@@ -192,6 +192,8 @@ if(MINGW)
5+
@@ -192,6 +192,9 @@ if(MINGW)
66
endif()
77
endif()
88

99
+string(REPLACE "-arch i386" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
10+
+string(REPLACE "-arch i386" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
1011
+
1112
# ----------------------------------------------------------------------------
1213
# OpenCV cmake options

0 commit comments

Comments
 (0)