Skip to content

Commit

Permalink
Turn off debug assertions in release
Browse files Browse the repository at this point in the history
  • Loading branch information
eupn committed Jan 4, 2024
1 parent fff1f15 commit ced6da4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/rust-xous-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
&& (dest=$(pwd) && cd $(rustc --print sysroot) && zip -r ${dest}/riscv32imac-unknown-xous_${{ steps.extract_rust_version.outputs.version }}.zip lib/rustlib/riscv32imac-unknown-xous-elf/)
env:
CARGO_PROFILE_RELEASE_DEBUG: 0
CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS: true
CARGO_PROFILE_RELEASE_OPT_LEVEL: 3
CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS: false
RUSTC_BOOTSTRAP: 1
RUSTFLAGS: -Cforce-unwind-tables=yes -Cembed-bitcode=yes
__CARGO_DEFAULT_LIB_METADATA: stablestd
Expand Down
2 changes: 1 addition & 1 deletion rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rust_sysroot=$(rustc $RUST_TOOLCHAIN --print sysroot)
export RUST_COMPILER_RT_ROOT="$(pwd)/src/llvm-project/compiler-rt"
export CARGO_PROFILE_RELEASE_DEBUG=0
export CARGO_PROFILE_RELEASE_OPT_LEVEL="3"
export CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="true"
export CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="false"
export RUSTC_BOOTSTRAP=1
export RUSTFLAGS="-Cforce-unwind-tables=yes -Cembed-bitcode=yes"
export __CARGO_DEFAULT_LIB_METADATA="stablestd"
Expand Down

0 comments on commit ced6da4

Please sign in to comment.