Skip to content

Commit ec330cf

Browse files
authored
[bazel] Update llvm-config.h and disable DebugLoc tracking (#144125)
In c588224, @chapuni set LLVM_ENABLE_DEBUGLOC_COVERAGE_TRACKING to 1, but from what I can tell, this is not the default setting for CMake builds. I think the intention was mostly just to update llvm-config.h to fix the Bazel build. I'm adding LLVM_ENABLE_DEBUGLOC_ORIGIN_TRACKING as well to fix the build for the same purpose.
1 parent 62eea86 commit ec330cf

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/llvm-config.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@
132132

133133
/* Define to 1 to enable expensive checks for debug location coverage checking,
134134
and to 0 otherwise. */
135-
#define LLVM_ENABLE_DEBUGLOC_COVERAGE_TRACKING 1
135+
#define LLVM_ENABLE_DEBUGLOC_COVERAGE_TRACKING 0
136+
137+
/* Define to 1 to enable expensive tracking of the origin of debug location
138+
coverage bugs, and to 0 otherwise. */
139+
#define LLVM_ENABLE_DEBUGLOC_ORIGIN_TRACKING 0
136140

137141
#endif

utils/bazel/llvm_configs/llvm-config.h.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,8 @@
133133
and to 0 otherwise. */
134134
#cmakedefine01 LLVM_ENABLE_DEBUGLOC_COVERAGE_TRACKING
135135

136+
/* Define to 1 to enable expensive tracking of the origin of debug location
137+
coverage bugs, and to 0 otherwise. */
138+
#cmakedefine01 LLVM_ENABLE_DEBUGLOC_ORIGIN_TRACKING
139+
136140
#endif

0 commit comments

Comments
 (0)