Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
bpo-35059 : Add /Ob1 flag when building pythoncore in debug mode#10094
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
vstinner commented Oct 25, 2018 • edited by bedevere-bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-bot
Uh oh!
There was an error while loading. Please reload this page.
vstinner commented Oct 25, 2018
This change matters when you consider the PR #10079 which converts Py_INCREF() macro to a static inline function. I'm not sure if it's ok to only modify pythoncore, or if the 38 other projects should be modified the same way? On Unix, Python is now compiled with -Og: |
zware commented Oct 25, 2018
You can instead add this to PCbuild/pyproject.props in the existing |
vstinner commented Oct 25, 2018
Oh thanks, I will try that! I was looking for something similar, but I failed to find it in the Visual Studio UI. |
vstinner commented Oct 26, 2018
Oh, fantastic! I tried and it works as expected! It's exactly what I was looking for ;-) I didn't know pyproject.props. |
Visual Studio solution: Set InlineFunctionExpansion to OnlyExplicitInline ("/Ob1" option) on all projects (in pyproject.props) in Debug mode on Win32 and x64 platforms to expand functions marked as inline. This change should make Python compiled in Debug mode a little bit faster on Windows. On Unix, GCC uses -Og optimization level for ./configure --with-pydebug.bedevere-bot commented Oct 26, 2018
Hi! The buildbot AMD64 Windows7 SP1 3.x has failed when building commit a05bef4. You can take a look here: |
vstinner commented Oct 26, 2018
Oh. I broke this buildbot for real :-( The compilation of the _decimal module fails: |
bedevere-bot commented Oct 26, 2018
Hi! The buildbot AMD64 Windows8 3.x has failed when building commit a05bef4. You can take a look here: |
bedevere-bot commented Oct 26, 2018
Hi! The buildbot AMD64 Windows10 3.x has failed when building commit a05bef4. You can take a look here: |
vstinner commented Oct 26, 2018
It seems like my PR #10128 fixed the linker error. |
Visual Studio solution: the "pythoncore" project is now compiled with
the /Ob1 flag in Debug mode to expand functions marked as inline.
https://bugs.python.org/issue35059