| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Fail fast with an explicit and clear error message if tail-calling is not | ||
| possible for MSVC builds on Windows. Patch by Chris Eibl. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -749,4 +749,13 @@ | |
| <Target Name="_DeletePyBuildDirTxt" BeforeTargets="PrepareForBuild"> | ||
| <Delete Files="$(OutDir)pybuilddir.txt" /> | ||
| </Target> | ||
|
|
||
| <Target Name="_CheckTailCalling" BeforeTargets="PrepareForBuild" Condition="'$(UseTailCallInterp)' == 'true' and $(PlatformToolset) != 'ClangCL'"> | ||
| <Error Text="MSVC supports tail-calling only for x64." | ||
| Condition="$(Platform) != 'x64'" /> | ||
|
Comment thread
Copy link
Copy Markdown
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityNot convinced this needs to be an error - if/when MSVC gets support, they may want to test it on CPython themselves before shipping, and we're just going to block them. As with Debug, make it a warning if you really want, but ultimately it's up to the user to decide whether they're enabling a feature or not. We shouldn't prevent users from doing what they want to do.
Sorry, something went wrong.
Fidget-Spinner and chris-eibl reacted with thumbs up emoji
All reactions
|
||
| <Error Text="Platform toolset >= v145 is required for tail-calling." | ||
| Condition="$(PlatformToolset.Replace('v', '0')) < '145'" /> | ||
|
Comment thread
Copy link
Copy Markdown
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityWe can't do this check - PlatformToolset is an arbitrary string, you can't assume that it's comparable to a number in any meaningful way.
Sorry, something went wrong.
Fidget-Spinner and chris-eibl reacted with thumbs up emoji
All reactions
|
||
| <Error Text="MSVC requires optimization to be enabled for tail-calling." | ||
| Condition="$(Configuration) == 'Debug'" /> | ||
|
Comment thread
itamaro marked this conversation as resolved.
Comment thread
Copy link
Copy Markdown
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityWhy would we do this? It makes it annoyingly hard to set tail calling enabled in my environment and then choose between debug/release builds. A warning is fine, if you really want, but a debug build is inherently without optimisations, so there's no reason to remind users that that's what they're getting.
Sorry, something went wrong.
All reactions
|
||
| </Target> | ||
| </Project> | ||
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.