Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Feb 10, 2024
1 parent 6c6ca83 commit 473528e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ fn ring_build_rs_main() {
env.starts_with("musl")
};

let is_git = false;
// don't build assembly routines from source -- these are fixed and pre-built for this config
// in order to avoid having to install perl and nasm on Windows clients.
let is_git = false;
// std::fs::metadata(".git").is_ok();

// Published builds are always built in release mode.
Expand Down Expand Up @@ -895,6 +895,7 @@ fn prefix_all_symbols(pp: char, prefix_prefix: &str, prefix: &str) -> String {
("ecp_nistz256_sqr_mont", "p256_sqr_mont"),
];

// Don't tamper with symbol names in Xous - we're using native Rust code
#[cfg(any(target_arch="wasm32", target_os="xous"))]
static SYMBOLS_TO_PREFIX: &[&str] = &[];
#[cfg(not(any(target_arch="wasm32", target_os="xous")))]
Expand Down
2 changes: 2 additions & 0 deletions src/prefixed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ macro_rules! prefixed_item {
};
}

// Xous uses no prefix because the functions are not thunked out to FFI modules --
// they are native Rust functions!
#[cfg(any(target_arch="wasm32", target_os="xous"))]
macro_rules! prefixed_item {
// Calculate the prefixed name in a separate layer of macro expansion
Expand Down

0 comments on commit 473528e

Please sign in to comment.