Skip to content

Commit e5ee631

Browse files
committed
add comment and test for relaxation
1 parent 11fedbe commit e5ee631

5 files changed

Lines changed: 593 additions & 10 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libdd-otel-thread-ctx-ffi/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ cbindgen = ["build_common/cbindgen", "libdd-common-ffi/cbindgen"]
2424
sanity-check = ["dep:libdd-common-ffi", "libdd-otel-thread-ctx/sanity-check"]
2525

2626
[dev-dependencies]
27+
elf = "0.7"
2728
libdd-otel-thread-ctx = { path = "../libdd-otel-thread-ctx", features = ["sanity-check"] }
2829

2930
[build-dependencies]

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)