Skip to content

Commit 3ca924e

Browse files
committed
Add back c and cpp cross-compilation
1 parent 24ddf65 commit 3ca924e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

aardvark-app/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ fn setup_logging() {
7575
}
7676

7777
fn load_resources() {
78+
// Used for macOS app bundle
7879
let mut base_bundle_path =
7980
std::env::current_exe().expect("Failed to get current executable path.");
8081
base_bundle_path.pop(); // -> Aardvark.app/Contents/MacOS/

x86_64-darwin-cross.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
[binaries]
2+
c = ['clang', '-target', 'x86_64-apple-darwin']
3+
cpp = ['clang++', '-target', 'x86_64-apple-darwin']
24
rust = ['rustc', '--target', 'x86_64-apple-darwin']
35
pkgconfig = 'pkg-config'
46

0 commit comments

Comments
 (0)