From b035b70f4e94dbbb3f7f2f1839b8ca86e1261c56 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Fri, 21 Oct 2022 09:36:22 +0200 Subject: [PATCH] Expose OUT_DIR for compiler passes to other components (#840) * Expose OUT_DIR for compiler passes to other components * not updating nyx --- libafl_cc/src/clang.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libafl_cc/src/clang.rs b/libafl_cc/src/clang.rs index f655b42e2f..de8e7ba725 100644 --- a/libafl_cc/src/clang.rs +++ b/libafl_cc/src/clang.rs @@ -10,6 +10,9 @@ use std::{ 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 { if cfg!(target_os = "windows") { "dll"