summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsyn <isaqtm@gmail.com>2021-01-07 23:54:05 +0300
committersyn <isaqtm@gmail.com>2021-01-07 23:54:05 +0300
commit7d1fedd11c02924f493760d07e44bd9374643e31 (patch)
tree1a8b4fc9af919422d684e6f13e70254ad0c79108
parentef2b020d504a62c2c6ed234b3a93ba61b051b66e (diff)
downloadtdlib-sys-7d1fedd11c02924f493760d07e44bd9374643e31.tar.gz
Clean shit
-rw-r--r--build.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/build.rs b/build.rs
index 619ad4c..ce25041 100644
--- a/build.rs
+++ b/build.rs
@@ -1,12 +1,6 @@
use std::path::PathBuf;
fn main() {
- //let crate_root: PathBuf = env::var("CARGO_MANIFEST_DIR").unwrap().into();
- /*let tdlib_path: PathBuf = {
- env::var("TDLIB_LIBRARY_PATH")
- .map_or_else(|_err| crate_root.join("td/build"), PathBuf::from)
- };*/
-
if cfg!(not(feature = "tdlib-provided")) {
build_tdlib();
}
@@ -31,8 +25,8 @@ fn guess_openssl_location() -> PathBuf {
.ok();
if cfg!(target_os = "macos") && openssl.is_none() {
- let ssl_very_minor_version = "abcdefghi";
- for ver in ssl_very_minor_version.chars().rev() {
+ let ssl_very_minor_version = 'a'..'z';
+ for ver in ssl_very_minor_version.rev() {
let maybe_path = PathBuf::from(format!("/usr/local/Cellar/openssl@1.1/1.1.1{}", ver));
if maybe_path.is_dir() {
openssl = Some(maybe_path);