summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2014-10-10 22:57:20 +0200
committerStefan Behnel <stefan_ml@behnel.de>2014-10-10 22:57:20 +0200
commit98b0f5dbda72b0861362e5a0e904ed55ae11d7ee (patch)
tree14b950f31d542f26dc42e449474c43bf2f938980
parent64c5b1acdb520d1a8aefb7bbd0a82c6864bf7598 (diff)
downloadcython-98b0f5dbda72b0861362e5a0e904ed55ae11d7ee.tar.gz
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
-rw-r--r--.travis.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 462129537..941b1dacd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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
- 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:
- PYTHON_DBG="python$( python -c 'import sys; print("%d.%d" % sys.version_info[:2])' )-dbg"