tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

build.rs (629B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 use std::path::PathBuf;
      6 
      7 fn main() {
      8    let out_dir = PathBuf::from(std::env::var_os("OUT_DIR").unwrap());
      9    if let Some(topobjdir) = out_dir
     10        .ancestors()
     11        .find(|dir| dir.join("config.status").exists())
     12    {
     13        println!(
     14            "cargo:rustc-env=BUILDCONFIG_RS={}",
     15            topobjdir
     16                .join("build/rust/mozbuild/buildconfig.rs")
     17                .display()
     18        );
     19    }
     20 }