Skip to content

Commit 4fe2937

Browse files
committed
Target
1 parent 8553313 commit 4fe2937

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgresql_embedded/build/bundle.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ pub(crate) async fn stage_postgresql_archive() -> Result<()> {
6161
if cfg!(feature = "bundled") && let Some(exact_version) = version_req.exact_version() {
6262
println!("Using existing version: {exact_version:?}");
6363
let ver = exact_version.to_string();
64-
let target_os = if cfg!(target_os = "windows") {
64+
let target_os = if target_triple::TARGET.contains("windows") {
6565
"windows"
66-
} else if cfg!(target_os = "linux") {
66+
} else if target_triple::TARGET.contains("linux") {
6767
"linux"
6868
} else {
6969
panic!("Unsupported target OS: only windows and linux are supported");

0 commit comments

Comments
 (0)