Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py: allow to override extra_compile_args #443

Merged
merged 3 commits into from
Aug 13, 2022

Commits on Sep 22, 2021

  1. setup.py: allow to override extra_compile_args

    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>
    giuliobenetti committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    cba808d View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2022

  1. Configuration menu
    Copy the full SHA
    ab00b0f View commit details
    Browse the repository at this point in the history
  2. Rename to UVLOOP_OPT_CFLAGS

    fantix committed Aug 13, 2022
    Configuration menu
    Copy the full SHA
    e29ae54 View commit details
    Browse the repository at this point in the history