Skip to content

Commit

Permalink
iox-#5 Fix macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Jun 21, 2022
1 parent da8771b commit 6862971
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ fn main() -> std::io::Result<()> {
println!("cargo:rustc-link-lib=iceoryx_hoofs");
println!("cargo:rustc-link-lib=iceoryx_platform");

#[cfg(target_os = "linux")]
println!("cargo:rustc-link-lib=acl");

#[cfg(not(any(target_os = "windows", target_os = "macos")))]
println!("cargo:rustc-link-lib=stdc++");
#[cfg(any(target_os = "macos"))]
println!("cargo:rustc-link-lib=c++");


Ok(())
}
2 changes: 1 addition & 1 deletion src/testing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
mod roudi_environment_ffi;

// re-exports
pub (crate) use roudi_environment_ffi::RouDiEnvironment;
pub(crate) use roudi_environment_ffi::RouDiEnvironment;
1 change: 1 addition & 0 deletions src/tests/basic_pub_sub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ fn basic_pub_sub() -> Result<()> {

let publisher = topic.offer();
let mut sample = publisher.allocate_sample()?;

const SEND_COUNTER: u32 = 42;
sample.counter = SEND_COUNTER;
publisher.publish(sample);
Expand Down

0 comments on commit 6862971

Please sign in to comment.