Skip to content

Commit

Permalink
Fix i686-pc-windows-gnu exernal bindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Dec 5, 2024
1 parent dbe12ec commit 6b403d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aws-lc-sys/builder/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,9 @@ fn invoke_external_bindgen(
let sym_prefix: String;
let mut bindgen_params = vec![];
if let Some(prefix_str) = prefix {
sym_prefix = if target_os().to_lowercase() == "macos" || target_os().to_lowercase() == "ios"
sym_prefix = if target_os().to_lowercase() == "macos"
|| target_os().to_lowercase() == "ios"
|| (target_os().to_lowercase() == "windows" && target_arch() == "x86")
{
format!("_{prefix_str}_")
} else {
Expand Down

0 comments on commit 6b403d1

Please sign in to comment.