first pass of merging in warp (doesn't build)
This commit is contained in:
+13
-10
@@ -3,17 +3,15 @@
|
||||
// Windows).
|
||||
#![allow(clippy::disallowed_types)]
|
||||
|
||||
use cfg_aliases::cfg_aliases;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::process::Command;
|
||||
use std::{env, fs};
|
||||
|
||||
use anyhow::Result;
|
||||
use galaxy_util::assets::{
|
||||
ASSETS_DIR, ASYNC_ASSETS_DIR, CONPTY_DLL_FILE, DXCOMPILER_DLL_FILE, DXIL_DLL_FILE,
|
||||
OPEN_CONSOLE_EXE_FILE, REMOTE_ASSETS_DIR, WINDOWS_ASSETS_DIR,
|
||||
};
|
||||
use cfg_aliases::cfg_aliases;
|
||||
use galaxy_util::assets::*;
|
||||
use galaxy_util::path::app_target_dir;
|
||||
use sha2::Digest;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::{env, fs, process::Command};
|
||||
use walkdir::WalkDir;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
@@ -36,13 +34,10 @@ fn main() -> Result<()> {
|
||||
println!("cargo:rustc-link-lib=framework=UserNotifications");
|
||||
build_and_link_sentry();
|
||||
|
||||
println!("cargo:rerun-if-changed=src/platform/mac/objc/app_bundle.h");
|
||||
println!("cargo:rerun-if-changed=src/platform/mac/objc/app_bundle.m");
|
||||
println!("cargo:rerun-if-changed=src/platform/mac/objc/services.h");
|
||||
println!("cargo:rerun-if-changed=src/platform/mac/objc/services.m");
|
||||
|
||||
cc::Build::new()
|
||||
.file("src/platform/mac/objc/app_bundle.m")
|
||||
.file("src/platform/mac/objc/services.m")
|
||||
.compile("warp_objc");
|
||||
|
||||
@@ -209,6 +204,14 @@ fn build_and_link_sentry() {
|
||||
"cargo:rustc-link-search=all={}",
|
||||
swift_library_path.display()
|
||||
);
|
||||
// Embed /usr/lib/swift as LC_RPATH so the deployed standalone CLI binary can
|
||||
// find Swift runtime dylibs on the remote host. On macOS 12.3+, Apple ships
|
||||
// the Swift runtime as an OS-level framework at /usr/lib/swift. Without this,
|
||||
// remote macOS hosts fail with:
|
||||
// dyld: Library not loaded: @rpath/libswiftCore.dylib
|
||||
// Reason: no LC_RPATH's found
|
||||
// See: https://github.com/warpdotdev/warp/issues/12631
|
||||
println!("cargo:rustc-link-arg=-Wl,-rpath,/usr/lib/swift");
|
||||
}
|
||||
|
||||
compile_sentry_objc_lib(&sentry_framework_path);
|
||||
|
||||
Reference in New Issue
Block a user