Skip to content

Commit

Permalink
Portable builds: fix issues with debug symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
maksis committed Nov 12, 2024
1 parent 337d280 commit 560ddbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion buildroot/build-portable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ BuildArch()
rm ${AIR_ARCH_ROOT}/CMakeCache.txt
fi

cmake -DCMAKE_TOOLCHAIN_FILE="${BR_ARCH_PATH}/output/host/usr/share/buildroot/toolchainfile.cmake" -DBUILD_SHARED_LIBS=OFF -DSTRIP=ON -DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" ${AIR_ARCH_ROOT}
# Define the CMAKE_CXX_FLAGS variable so that we won't get any defaults from the toolchain file
cmake -DCMAKE_TOOLCHAIN_FILE="${BR_ARCH_PATH}/output/host/usr/share/buildroot/toolchainfile.cmake" -DSTRIP=ON -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O2 -g -DNDEBUG" -DCMAKE_CXX_FLAGS="" -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" ${AIR_ARCH_ROOT}

make -j${BUILD_THREADS}

Expand Down
5 changes: 4 additions & 1 deletion buildroot/config/.config
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,10 @@ BR2_LUAROCKS_MIRROR="http://rocks.moonscript.org"
BR2_CPAN_MIRROR="http://cpan.metacpan.org"
BR2_JLEVEL=0
# BR2_CCACHE is not set
# BR2_ENABLE_DEBUG is not set
BR2_ENABLE_DEBUG=y
# BR2_DEBUG_1 is not set
BR2_DEBUG_2=y
# BR2_DEBUG_3 is not set
# BR2_ENABLE_RUNTIME_DEBUG is not set
# BR2_STRIP_strip is not set
# BR2_OPTIMIZE_0 is not set
Expand Down

0 comments on commit 560ddbf

Please sign in to comment.