Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Fix debug builds failling because of core lib
Browse files Browse the repository at this point in the history
Unfortunately the follwing problem was reintroduced because the linux
target was removed without checking if debug builds still worked.

Issue: cross-rs/cross#724
  • Loading branch information
marchaen committed Oct 27, 2023
1 parent 462eef4 commit 6009f80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -455,3 +455,7 @@ documentation-build

# Automatically generated native library bindings
AKL.Common/bindings

# Build artifcats of the debug builds for akl-core-system-lib
build-win
build-linux
6 changes: 3 additions & 3 deletions AKL.Common/AKL.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
WorkingDirectory="$(MSBuildProjectDirectory)/../akl-core-system-lib" />

<!-- Compile debug server -->
<Exec Command="cross build --release --target x86_64-pc-windows-gnu --bin debug-server"
<Exec Command="cross build --release --target x86_64-pc-windows-gnu --bin debug-server --target-dir build-win"
WorkingDirectory="$(MSBuildProjectDirectory)/../akl-core-system-lib" />
<Exec Command="cross build --release --target x86_64-unknown-linux-gnu --bin debug-server"
<Exec Command="cross build --release --target x86_64-unknown-linux-gnu --bin debug-server --target-dir build-linux"
WorkingDirectory="$(MSBuildProjectDirectory)/../akl-core-system-lib" />

<!-- Copy generated bindings from the native lib -->
Expand All @@ -73,7 +73,7 @@
<PublishState>Included</PublishState>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</Content>
<Content Include="../akl-core-system-lib/target/x86_64-pc-windows-gnu/release/debug-server.exe">
<Content Include="../akl-core-system-lib/build-win/x86_64-pc-windows-gnu/release/debug-server.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PublishState>Included</PublishState>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
Expand Down

0 comments on commit 6009f80

Please sign in to comment.