Skip to content

Commit

Permalink
try to disable __STRICT_ANSI__ on 32-bit linux
Browse files Browse the repository at this point in the history
  • Loading branch information
skvark committed Jan 8, 2019
1 parent 6851d56 commit b05f919
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ def main():
cmake_args.append("-DWITH_IPP=OFF") # tests fail with IPP compiled with
# devtoolset-2 GCC 4.8.2 or vanilla GCC 4.9.4
# see https://github.com/skvark/opencv-python/issues/138
if sys.platform.startswith('linux') and not x64:
cmake_args.append("-DCMAKE_CXX_FLAGS=-U__STRICT_ANSI__")

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

0 comments on commit b05f919

Please sign in to comment.