Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bazel: Make release build a debug build
Browse files Browse the repository at this point in the history
Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
jrajahalme committed Nov 29, 2024

Verified

This commit was signed with the committer’s verified signature.
stefandoorn Stefan Doorn
1 parent f09ed99 commit 43826d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -15,13 +15,13 @@ build --platform_mappings=bazel/platform_mappings
build --define path_normalization_by_default=true

# release builds are optimized
build:release -c opt
build:release -c dbg

# No debug info for release builds
build:release --define no_debug_info=1
build:release --linkopt=-Wl,--strip-all
build:release --features=-per_object_debug_info
build:release --fission=dbg
#build:release --define no_debug_info=1
#build:release --linkopt=-Wl,--strip-all
#build:release --features=-per_object_debug_info
#build:release --fission=dbg

# Manual link stamping, forces link to include current git SHA even if binary is otherwise
# upto-date

0 comments on commit 43826d1

Please sign in to comment.