SERVER-99526 improve bazel compiledb support (#31525)
GitOrigin-RevId: 1e96b58882ef029eb815b9deb8bbcd09cc20e59f
This commit is contained in:
committed by
MongoDB Bot
parent
adedf4a17c
commit
bfc1071b78
14
bazel/wrapper_hook/wrapper_debug.py
Normal file
14
bazel/wrapper_hook/wrapper_debug.py
Normal 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
|
||||
Reference in New Issue
Block a user