Skip to content

Commit

Permalink
Add 'debug-cross-linux Makefile opt, for 'depends' build + debug symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
who-biz committed Sep 6, 2023
1 parent eb829d2 commit 64225d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ debug-static-all:
mkdir -p build/debug
cd build/debug && cmake -D BUILD_TESTS=OFF -D STATIC=ON -D BUILD_SHARED_LIBS=OFF -D CMAKE_BUILD_TYPE="Debug" ../.. && $(MAKE)

debug-cross-linux:
cd contrib/depends && ${MAKE} -j4 HOST=x86_64-gnu-linux
mkdir -p build/debug
cd build/debug && cmake -D CMAKE_BUILD_TYPE="Debug" -D CMAKE_TOOLCHAIN_FILE=${PWD}/contrib/depends/x86_64-gnu-linux/share/toolchain.cmake ../.. && ${MAKE}

cmake-release:
mkdir -p build/release
cd build/release && cmake -D CMAKE_BUILD_TYPE="Release" ../..
Expand Down

0 comments on commit 64225d8

Please sign in to comment.