Skip to content

Commit

Permalink
Formatted code.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmartin82 committed Oct 17, 2024
1 parent 54b0d12 commit a6b0316
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ fn main() {
let mut prefix = String::from("");

// Prefix symbols in Cyclone DDS and Cyclocut libraries to ensure uniqueness
#[cfg(all(target_os = "linux", any(target_arch = "x86", target_arch = "x86_64"), not(feature = "iceoryx")))]
#[cfg(all(
target_os = "linux",
any(target_arch = "x86", target_arch = "x86_64"),
not(feature = "iceoryx")
))]
{
// Prefix = cyclors_<version>_
prefix = env::var("CARGO_PKG_VERSION").unwrap().replace('.', "_");
Expand Down Expand Up @@ -219,7 +223,11 @@ fn main() {
.expect("Couldn't write bindings!");
}

#[cfg(all(target_os = "linux", any(target_arch = "x86", target_arch = "x86_64"), not(feature = "iceoryx")))]
#[cfg(all(
target_os = "linux",
any(target_arch = "x86", target_arch = "x86_64"),
not(feature = "iceoryx")
))]
fn get_defined_symbols(lib_dir: &Path, lib_name: &str) -> Result<HashSet<String>, String> {
let lib_path = lib_dir.to_path_buf().join(lib_name);

Expand Down Expand Up @@ -255,7 +263,11 @@ fn get_defined_symbols(lib_dir: &Path, lib_name: &str) -> Result<HashSet<String>
}
}

#[cfg(all(target_os = "linux", any(target_arch = "x86", target_arch = "x86_64"), not(feature = "iceoryx")))]
#[cfg(all(
target_os = "linux",
any(target_arch = "x86", target_arch = "x86_64"),
not(feature = "iceoryx")
))]
fn prefix_symbols(
lib_dir: &Path,
lib_name: &str,
Expand Down

0 comments on commit a6b0316

Please sign in to comment.