[Build] Remove debug info from Ray libraries. (#20389)

## Why are these changes needed?
Ray wheel size limit is still at 100MB. Removing debug symbols would decrease Ray Linux wheel sizes.

## Related issue number

## Checks
This commit is contained in:
mwtian 2021-11-15 16:40:48 -08:00 committed by GitHub
parent 90dc5460d4
commit 1dd8b3d2bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,9 +7,6 @@ build --enable_platform_specific_config
build --action_env=PATH build --action_env=PATH
# For --compilation_mode=dbg, consider enabling checks in the standard library as well (below). # For --compilation_mode=dbg, consider enabling checks in the standard library as well (below).
build --compilation_mode=opt build --compilation_mode=opt
# Generate minimal debug symbols on Linux and MacOS
build:linux --copt="-g1"
build:macos --copt="-g1"
# Using C++ 17 on all platforms. # Using C++ 17 on all platforms.
build:linux --cxxopt="-std=c++17" build:linux --cxxopt="-std=c++17"
build:macos --cxxopt="-std=c++17" build:macos --cxxopt="-std=c++17"