GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add loongarch64 support by xiangzhai · Pull Request #4914 · RustPython/RustPython Conversation
Contributor
Hi, cargo build && test, all tests pass: Please review my patch. Thanks,
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
youknowone
requested changes
|
| machine = platform.machine() | ||
| suffix = sysconfig.get_config_var('EXT_SUFFIX') | ||
| if re.match('(aarch64|arm|mips|ppc|powerpc|s390|sparc)', machine): | ||
| if re.match('(aarch64|arm|loongarch64|mips|ppc|powerpc|s390|sparc)', machine): |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We generally don't edit this file ourselves because it mostly came from CPython.
But I understand this is necessary to correctly support the architecture.
Not to lose the changes when we update this file to new version,
Adding a comment is useful.
| if re.match('(aarch64|arm|loongarch64|mips|ppc|powerpc|s390|sparc)', machine): | |
| # XXX: RUSTPYTHON; loongarch64 is locally added in github #4914 | |
| if re.match('(aarch64|arm|loongarch64|mips|ppc|powerpc|s390|sparc)', machine): |
And also, I found the related CPython patch doesn't include this change. Is it necessary in RustPython?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your careful review!
It is not necessary in RustPython.
Fixed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi @youknowone I fixed cargo fmt and clippy issues and ran the test for Ubuntu 22.04 x86_64: Please review it again! Thanks, |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| MADV_MERGEABLE, MADV_NOHUGEPAGE, MADV_REMOVE, MADV_UNMERGEABLE, | ||
| }; | ||
|
|
||
| #[allow(unused_imports)] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is supposed to be used by #[pyattr]
| #[allow(unused_imports)] | |
| #[pyattr] |
Because we usually use cfg - pyattr order, placing it under cfg will be better.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ) | ||
| ) | ||
| ))] | ||
| #[allow(unused_imports)] |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| #[allow(unused_imports)] | |
| #[pyattr] |
The value has to be used by pyattr to be exposed to python side
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I got :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thank you for contributing! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.