We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12438e0 commit 2b111d3Copy full SHA for 2b111d3
apps/desktop/src-tauri/build.rs
@@ -10,8 +10,7 @@ fn main() {
10
11
#[cfg(target_os = "macos")]
12
fn build_check_permissions() {
13
- let triple = std::env::var("TAURI_ENV_TARGET_TRIPLE")
14
- .unwrap_or_else(|_| "aarch64-apple-darwin".to_string());
+ let triple = std::env::var("TARGET").unwrap();
15
16
let manifest_dir = std::path::Path::new(env!("CARGO_MANIFEST_DIR"));
17
let swift_src = manifest_dir.join("../../../plugins/permissions/swift/check-permissions.swift");
@@ -26,6 +25,8 @@ fn build_check_permissions() {
26
25
.args(["-O", "-o"])
27
.arg(&dst)
28
.arg(&swift_src)
+ // we should theoretically cross compile for the target
29
+ // .args(["-target", &triple])
30
.status()
31
.expect("failed to run swiftc");
32
0 commit comments