##// END OF EJS Templates
rust: lower compile error on non-linux platforms to a warning...
Dan Villiom Podlaski Christiansen -
r47081:cabc5e93 default
parent child Browse files
Show More
@@ -30,14 +30,6 b' pub mod config;'
30 pub mod operations;
30 pub mod operations;
31 pub mod utils;
31 pub mod utils;
32
32
33 // Remove this to see (potential) non-artificial compile failures. MacOS
34 // *should* compile, but fail to compile tests for example as of 2020-03-06
35 #[cfg(not(target_os = "linux"))]
36 compile_error!(
37 "`hg-core` has only been tested on Linux and will most \
38 likely not behave correctly on other platforms."
39 );
40
41 use crate::utils::hg_path::{HgPathBuf, HgPathError};
33 use crate::utils::hg_path::{HgPathBuf, HgPathError};
42 pub use filepatterns::{
34 pub use filepatterns::{
43 parse_pattern_syntax, read_pattern_file, IgnorePattern,
35 parse_pattern_syntax, read_pattern_file, IgnorePattern,
@@ -609,6 +609,12 b' class hgbuildext(build_ext):'
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
General Comments 0
You need to be logged in to leave comments. Login now