Skip to content

Commit 3318ea9

Browse files
committed
wip: windows cross compilation
1 parent 3a12326 commit 3318ea9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.cargo/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[target.aarch64-unknown-linux-gnu]
2+
linker = "aarch64-linux-gnu-gcc"
3+
4+
[target.x86_64-pc-windows-gnu]
5+
linker = "x86_64-w64-mingw32-gcc"

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ slog-term = {version = "2.9.1", optional = true }
6565
slog-scope = "4.4.0"
6666
slog-async = "2.8.0"
6767
slog-stdlog = "4.1.1"
68-
[target.'cfg(target_os = "linux")'.dependencies]
69-
slog-journald = {version = "2.2.0", optional = true }
7068
tabled = "0.19.0"
7169
terminal_size = "0.4.2"
7270

71+
[target.'cfg(target_os = "linux")'.dependencies]
72+
slog-journald = {version = "2.2.0", optional = true }
73+
7374
[dependencies.clap]
7475
version = "4.5.39"
7576
features = ["cargo", "derive"]

0 commit comments

Comments
 (0)