Skip to content

Commit

Permalink
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>
  • Loading branch information
jrajahalme committed Dec 23, 2024
1 parent 24151e5 commit f2b9298
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
Expand Up @@ -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
Expand Down

0 comments on commit f2b9298

Please sign in to comment.