SERVER-99526 improve bazel compiledb support (#31525)

GitOrigin-RevId: 1e96b58882ef029eb815b9deb8bbcd09cc20e59f
This commit is contained in:
Daniel Moody
2025-01-24 15:47:09 -06:00
committed by MongoDB Bot
parent adedf4a17c
commit bfc1071b78
22 changed files with 576 additions and 272 deletions

View File

@@ -0,0 +1,14 @@
import os
import sys
if (
os.environ.get("MONGO_BAZEL_WRAPPER_DEBUG") == "1"
and os.environ.get("MONGO_AUTOCOMPLETE_QUERY") != "1"
):
def wrapper_debug(x):
print("[WRAPPER_HOOK_DEBUG]: " + x, file=sys.stderr)
else:
def wrapper_debug(x):
pass