bazelbuild / bazelbuild/rules_android_ndk
Bazel adds "-g" in opt compilation mode when using NDK
- Dominant language
- Starlark
- Stars
- 43
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Description
### Description of the bug:
Seen at src/main/java/com/google/devtools/build/lib/bazel/rules/android/ndkcrosstools/r19/ArmCrosstools.java:91
When building my library using NDK with opt mode, bazel always adds the flag "-g" into the command line arguments.
This causes some problems for me because I don't want any debugging information to appear inside my library.
### Which category does this issue belong to?
_No response_
### What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
_No response_
### Which operating system are you running Bazel on?
_No response_
### What is the output of `bazel info release`?
_No response_
### If `bazel info release` returns `development version` or `(@non-git)`, tell us how you built Bazel.
_No response_
### What's the output of `git remote get-url origin; git rev-parse master; git rev-parse HEAD` ?
_No response_
### Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
_No response_
### Have you found anything relevant by searching the web?
_No response_
### Any other information, logs, or outputs that you want to share?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.