Expose OUT_DIR for compiler passes to other components (#840)

* Expose OUT_DIR for compiler passes to other components

* not updating nyx
This commit is contained in:
Dominik Maier 2022-10-21 09:36:22 +02:00 committed by GitHub
parent 64ec5c30ae
commit b035b70f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,9 @@ use std::{
use crate::{CompilerWrapper, Error, LIB_EXT, LIB_PREFIX}; use crate::{CompilerWrapper, Error, LIB_EXT, LIB_PREFIX};
/// The `OUT_DIR` for `LLVM` compiler passes
pub const OUT_DIR: &str = env!("OUT_DIR");
fn dll_extension<'a>() -> &'a str { fn dll_extension<'a>() -> &'a str {
if cfg!(target_os = "windows") { if cfg!(target_os = "windows") {
"dll" "dll"