Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b05f919

Browse filesBrowse files
committed
try to disable __STRICT_ANSI__ on 32-bit linux
1 parent 6851d56 commit b05f919
Copy full SHA for b05f919

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎setup.py

Copy file name to clipboardExpand all lines: setup.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ def main():
146146
cmake_args.append("-DWITH_IPP=OFF") # tests fail with IPP compiled with
147147
# devtoolset-2 GCC 4.8.2 or vanilla GCC 4.9.4
148148
# see https://github.com/skvark/opencv-python/issues/138
149+
if sys.platform.startswith('linux') and not x64:
150+
cmake_args.append("-DCMAKE_CXX_FLAGS=-U__STRICT_ANSI__")
149151

150152
# ABI config variables are introduced in PEP 425
151153
if sys.version_info[:2] < (3, 2):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.