diff options
| author | Jason Madden <jamadden@gmail.com> | 2021-10-29 17:43:27 -0500 |
|---|---|---|
| committer | Jason Madden <jamadden@gmail.com> | 2021-10-29 17:43:27 -0500 |
| commit | 83e62ca16da2ed97f2f8e5e9ec94be00f69f2e07 (patch) | |
| tree | 842a38fe583adafb9ab509084899110461e6f683 /setup.py | |
| parent | 4e5eb53383199cca9b128cd3c2275ecc69dcf508 (diff) | |
| download | greenlet-83e62ca16da2ed97f2f8e5e9ec94be00f69f2e07.tar.gz | |
Nope, both are needed. So what about if faulthandler is off and we optimize (inline things)?
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -55,20 +55,21 @@ elif sys.platform == 'win32': handler = "/EHsc" cpp_compile_args.append(handler) # disable most optimizations - cpp_compile_args.append('/Od') + #cpp_compile_args.append('/Od') # enable assertions cpp_compile_args.append('/UNDEBUG') # enable more compile-time warnings. /Wall produces a mountain of output. - cpp_compile_args.append('/W4') + #cpp_compile_args.append('/W4') # link with the debug C runtime...except we can't because we need # the Python debug lib too, and they're not around by default # cpp_compile_args.append('/MDd') + # Support fiber-safe thread-local storage: "the compiler mustn't # cache the address of the TLS array, or optimize it as a common # subexpression across a function call." This would probably solve # some of the issues we had with MSVC caching the thread local # variables on the stack, leading to having to split some - # functions up. + # functions up. Revisit those. cpp_compile_args.append("/GT") def readfile(filename): @@ -212,7 +213,8 @@ setup( ], 'test': [ 'objgraph', - 'faulthandler; python_version == "2.7" and platform_python_implementation == "CPython"', + # Faulthandler temp off to see if it changes the handlers. + # 'faulthandler; python_version == "2.7" and platform_python_implementation == "CPython"', ], }, python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*", |
