Commit 98b0f5db authored by Stefan Behnel's avatar Stefan Behnel

travis build: force use of "-fno-strict-aliasing" in Py2

--HG--
extra : transplant_source : %A4%C2%DA%5EV%1C%17%07%E3%E9%9E%C7%AB%1EF%2C%C8%A7%1C%5D
parent 64c5b1ac
...@@ -22,7 +22,8 @@ before_install: ...@@ -22,7 +22,8 @@ before_install:
- sudo apt-get install gdb python$( python -c 'import sys; print("%d.%d" % sys.version_info[:2])' )-dbg || true - sudo apt-get install gdb python$( python -c 'import sys; print("%d.%d" % sys.version_info[:2])' )-dbg || true
- dpkg -l | grep gdb || true - dpkg -l | grep gdb || true
install: CFLAGS="-O2 -ggdb -Wall -Wextra" python setup.py build install:
- CFLAGS="-O2 -ggdb -Wall -Wextra $(python -c 'import sys; print("-fno-strict-aliasing" if sys.version_info[0] == 2 else "")')" python setup.py build
script: script:
- PYTHON_DBG="python$( python -c 'import sys; print("%d.%d" % sys.version_info[:2])' )-dbg" - PYTHON_DBG="python$( python -c 'import sys; print("%d.%d" % sys.version_info[:2])' )-dbg"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment