-
Notifications
You must be signed in to change notification settings - Fork 331
Add BazelDebugFlagsBuilder #8021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add BazelDebugFlagsBuilder #8021
Conversation
7f975bb to
a64dcbc
Compare
ujohnny
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall looks good, do we want to add debug test as I did in #7825 ?
| compilerKind, | ||
| OS.CURRENT, | ||
| withClangTrimPaths = Registry.`is`("bazel.trim.absolute.path.disabled"), | ||
| withFissionFlag = Registry.`is`("bazel.clwb.debug.fission.disabled"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we have to have ! here as then
&& withFissionFlag) {
switchBuilder.withSwitch("--fission=yes")
}
| } | ||
| } | ||
|
|
||
| fun withTestFlags(timeout: Int? = 3600) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
60.minutes and later toSeconds()
| */ | ||
| class BazelDebugFlagsBuilder( | ||
| private val debuggerKind: BlazeDebuggerKind, | ||
| private val compilerKind: OCCompilerKind, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some compilerkind/debuggerkind combinations do not make any sense, do we want to enforce some checks here or around?
Followup for: #7825, #7639 and #7827
Introduces a common flag builder for assembling all flags required for debug builds / runs. In theory we would like a builder that creates
BlazeCommandand hands this off the theBazelExecServiceto have full control over the environment, but this would be a major refactor.