chore: Treate the prof=true backtrace method as an enum (#2)

When --enable-prof is set during configure, detection of a suitable
backtrace method is performed stopping with the first supported
solution. This can be augmented by explicitly enabling or disabling
detection of specific methods. To better model this in a bazel context,
the //settings/flags:enable_prof is extended to have enumerable values
where the backtrace method can be explicitly declared.
This commit is contained in:
Connor 2025-05-03 11:00:26 -06:00 committed by GitHub
parent 76176f6760
commit db4f5f7461
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 40 additions and 39 deletions

View file

@ -47,4 +47,7 @@ COPTS = ["-D_REENTRANT"] + select({
],
"@platforms//os:macos": ["-DPIC"],
"//conditions:default": [],
}) + select({
"//settings/flags:prof_gcc": ["-fno-omit-frame-pointer"],
"//conditions:default": [],
})