Skip to content

Commit

Permalink
Let specify arbitrary build configuration via Docker
Browse files Browse the repository at this point in the history
Default to RelWithDebInfo for both optimizations and debug information
  • Loading branch information
ilya-fedin authored and john-preston committed Feb 6, 2024
1 parent 5334096 commit 29debc0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
docker run --rm \
-v $PWD:/usr/src/tdesktop \
-e DEBUG=1 \
-e CONFIG=Debug \
tdesktop:centos_env \
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
-D CMAKE_C_FLAGS_DEBUG="" \
Expand Down
7 changes: 1 addition & 6 deletions Telegram/build/docker/centos_env/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,4 @@ set -e

cd Telegram
./configure.sh "$@"

if [ -n "$DEBUG" ]; then
cmake --build ../out --config Debug --parallel
else
cmake --build ../out --config Release --parallel
fi
cmake --build ../out --config "${CONFIG:-RelWithDebInfo}" --parallel
2 changes: 1 addition & 1 deletion docs/building-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Or, to create a debug build, run (also using [your **api_id** and **api_hash**](

docker run --rm -it \
-v $PWD:/usr/src/tdesktop \
-e DEBUG=1 \
-e CONFIG=Debug \
tdesktop:centos_env \
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
-D TDESKTOP_API_ID=YOUR_API_ID \
Expand Down

0 comments on commit 29debc0

Please sign in to comment.