From e5f23eb41ab834c55b090c2cd599cbb86d352075 Mon Sep 17 00:00:00 2001 From: Imbris Date: Tue, 15 Jun 2021 01:04:42 -0400 Subject: [PATCH] Add debug line tables and avoid building unwinding landing pads in release builds --- .gitlab-ci.yml | 2 +- CHANGELOG.md | 1 + Cargo.toml | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c497e9c1c1..4967ab327b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,7 +13,7 @@ variables: # https://docs.gitlab.com/ee/ci/yaml/#shallow-cloning GIT_DEPTH: 3 GIT_CLEAN_FLAGS: -f - CACHE_IMAGE_TAG: 55629eab + CACHE_IMAGE_TAG: 8490f4b9 default: # https://docs.gitlab.com/ee/ci/pipelines/settings.html#auto-cancel-pending-pipelines diff --git a/CHANGELOG.md b/CHANGELOG.md index 2694d34f41..a09f064b99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Added a skill tree for mining, which gains xp from mining ores and gems. +- Added debug line info to release builds, enhancing the usefulness of panic backtraces ### Changed - Entity-entity pushback is no longer applied in forced movement states like rolling and leaping. diff --git a/Cargo.toml b/Cargo.toml index bd0e04061c..1f5d7b0750 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -86,7 +86,8 @@ opt-level = 3 overflow-checks = false debug-assertions = false lto = true -debug = false +debug = 1 # line tables so we can have useful backtraces +panic = "abort" # don't need unwinding so we can skip including the landing pads for that # used for cargo bench [profile.bench]