Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup.py: allow to override extra_compile_args (#443)
At the moment extra_compile_args is set to -O2 by default. But m68k toolchain has a bug that when trying to build Extension uvloop.loop enters an infinite loop[1]. So we need to override -O2 with -O0 to make it work. So let's getenv('MODULES_CFLAGS') and assign it to local MODULES_CFLAGS (former CFLAGS) and assign it to extra_compile_args. If not MODULES_CFLAGS is found then -O2 is kept as default. [1]: http://autobuild.buildroot.net/results/17d/17d6e6422abadcd6313c430c40f2a5d7162dbbd3/build-end.log Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> * Rename to UVLOOP_OPT_CFLAGS Co-authored-by: Fantix King <fantix.king@gmail.com>
- Loading branch information