Skip to content

Commit d71783d

Browse files
committed
add comment and test for relaxation
1 parent 506d690 commit d71783d

3 files changed

Lines changed: 330 additions & 22 deletions

File tree

libdd-otel-thread-ctx-ffi/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ use std::env;
88
fn main() {
99
generate_and_configure_header("otel-thread-ctx.h");
1010

11+
let cross_compiling = env::var("HOST").unwrap() != env::var("TARGET").unwrap();
12+
println!("cargo:rustc-env=LIBDD_OTEL_THREAD_CTX_FFI_CROSS_COMPILING={cross_compiling}");
13+
1114
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap();
1215
if target_os != "linux" {
1316
return;

0 commit comments

Comments
 (0)