Commit 99ad7ca3 authored by Jason Madden's avatar Jason Madden

Tweak path and concurrency for macOS builds.

parent 32cf7f3d
...@@ -25,6 +25,7 @@ env: ...@@ -25,6 +25,7 @@ env:
# Don't get warnings about Python 2 support being deprecated. We # Don't get warnings about Python 2 support being deprecated. We
# know. The env var works for pip 20. # know. The env var works for pip 20.
- PIP_NO_PYTHON_VERSION_WARNING=1 - PIP_NO_PYTHON_VERSION_WARNING=1
- PIP_NO_WARN_SCRIPT_LOCATION=1
- CC="ccache gcc" - CC="ccache gcc"
- CCACHE_NOCPP2=true - CCACHE_NOCPP2=true
- CCACHE_SLOPPINESS=file_macro,time_macros,include_file_ctime,include_file_mtime - CCACHE_SLOPPINESS=file_macro,time_macros,include_file_ctime,include_file_mtime
...@@ -33,7 +34,7 @@ env: ...@@ -33,7 +34,7 @@ env:
- GEVENTSETUP_EV_VERIFY=2 - GEVENTSETUP_EV_VERIFY=2
# Disable some warnings produced by libev especially and also some Cython generated code. # Disable some warnings produced by libev especially and also some Cython generated code.
# Note that changing the value of these variables invalidates configure caches # Note that changing the value of these variables invalidates configure caches
- CFLAGS="-g -pipe -Wno-strict-aliasing -Wno-comment" - CFLAGS="-Ofast -pipe -Wno-strict-aliasing -Wno-comment"
- CPPFLAGS="-I$BUILD_LIBS/include -DEV_VERIFY=3" - CPPFLAGS="-I$BUILD_LIBS/include -DEV_VERIFY=3"
- LDFLAGS="-L$BUILD_LIBS/lib" - LDFLAGS="-L$BUILD_LIBS/lib"
- LD_LIBRARY_PATH="$BUILD_LIBS/lib" - LD_LIBRARY_PATH="$BUILD_LIBS/lib"
...@@ -93,6 +94,8 @@ before_install: ...@@ -93,6 +94,8 @@ before_install:
- | - |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew install ccache brew install ccache
export PATH="/usr/local/opt/ccache/libexec:$PATH"
export CFLAGS="$CFLAGS -Wno-parentheses-equality"
fi fi
before_script: before_script:
......
...@@ -19,6 +19,7 @@ from .sysinfo import PYPY ...@@ -19,6 +19,7 @@ from .sysinfo import PYPY
from .sysinfo import PY2 from .sysinfo import PY2
from .sysinfo import RESOLVER_ARES from .sysinfo import RESOLVER_ARES
from .sysinfo import RUN_LEAKCHECKS from .sysinfo import RUN_LEAKCHECKS
from .sysinfo import OSX
from . import six from . import six
from . import travis from . import travis
...@@ -50,7 +51,7 @@ DEFAULT_RUN_OPTIONS = { ...@@ -50,7 +51,7 @@ DEFAULT_RUN_OPTIONS = {
if RUNNING_ON_CI: if RUNNING_ON_CI:
# Too many and we get spurious timeouts # Too many and we get spurious timeouts
DEFAULT_NWORKERS = 4 DEFAULT_NWORKERS = 4 if not OSX else 2
def _package_relative_filename(filename, package): def _package_relative_filename(filename, package):
......
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