Skip to content

Commit

Permalink
Add debug options to cargo-xwin.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ark0f committed Oct 6, 2024
1 parent 1d89a42 commit e1c746a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion scripts/cargo-xwin.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
#!/usr/bin/env bash

XWIN_ARCH="x86_64" CARGO_BUILD_TARGET=x86_64-pc-windows-msvc CARGO_TARGET_DIR="target-xwin" cargo xwin $@
export CARGO_BUILD_TARGET="x86_64-pc-windows-msvc"
export XWIN_ARCH="x86_64"
export CARGO_TARGET_DIR="target-xwin"

if [ "$1" = "--gdb" ]; then
export CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUNNER="winedbg --gdb --no-start"
shift
fi

if [ "$1" = "--lldb" ]; then
export CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUNNER="/opt/homebrew/opt/llvm/bin/lldb-server g :1234 -- wine"
shift
fi

cargo xwin $@

0 comments on commit e1c746a

Please sign in to comment.