Mercurial > public > mercurial-scm > hg-stable
comparison setup.py @ 46441:cabc5e9366c5
rust: lower compile error on non-linux platforms to a warning
As discussed on D9671#146704 this lowers the error to a warning.
Differential Revision: https://phab.mercurial-scm.org/D9852
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Fri, 22 Jan 2021 11:10:39 +0100 |
parents | 2ef575c62f10 |
children | 16c18d5e5dc8 |
comparison
equal
deleted
inserted
replaced
46440:bb3a5c0df06b | 46441:cabc5e9366c5 |
---|---|
607 | 607 |
608 # Build Rust standalon extensions if it'll be used | 608 # Build Rust standalon extensions if it'll be used |
609 # and its build is not explictely disabled (for external build | 609 # and its build is not explictely disabled (for external build |
610 # as Linux distributions would do) | 610 # as Linux distributions would do) |
611 if self.distribution.rust and self.rust: | 611 if self.distribution.rust and self.rust: |
612 if not sys.platform.startswith('linux'): | |
613 self.warn( | |
614 "rust extensions have only been tested on Linux " | |
615 "and may not behave correctly on other platforms" | |
616 ) | |
617 | |
612 for rustext in ruststandalones: | 618 for rustext in ruststandalones: |
613 rustext.build('' if self.inplace else self.build_lib) | 619 rustext.build('' if self.inplace else self.build_lib) |
614 | 620 |
615 return build_ext.build_extensions(self) | 621 return build_ext.build_extensions(self) |
616 | 622 |