Skip to content

Commit

Permalink
Merge branch 'main' into zachg/handle_cross_org_propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
ZStriker19 authored Dec 19, 2024
2 parents 533bbe1 + 5cee25e commit e2911cd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ include(GoogleTest)
include(AnalysisFunc)

if(DO_VALGRIND)
find_program(VALGRIND_EXECUTABLE NAMES valgrind PATHS /usr/bin /usr/local/bin)
find_program(
VALGRIND_EXECUTABLE
NAMES valgrind
PATHS /usr/bin /usr/local/bin)

if (VALGRIND_EXECUTABLE)
if(VALGRIND_EXECUTABLE)
set(MEMORYCHECK_COMMAND "${VALGRIND_EXECUTABLE}")
set(MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --show-leak-kinds=definite --errors-for-leak-kinds=definite --trace-children=yes --error-exitcode=1 --log-fd=1 --suppressions=${CMAKE_CURRENT_SOURCE_DIR}/valgrind.supp")
set(MEMORYCHECK_COMMAND_OPTIONS
"--leak-check=full --show-leak-kinds=definite --errors-for-leak-kinds=definite --trace-children=yes --error-exitcode=1 --log-fd=1 --suppressions=${CMAKE_CURRENT_SOURCE_DIR}/valgrind.supp"
)
else()
message(FATAL_ERROR "Valgrind not found")
endif()
Expand Down
11 changes: 8 additions & 3 deletions ddtrace/internal/datadog/profiling/stack_v2/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ include(GoogleTest)
include(AnalysisFunc)

if(DO_VALGRIND)
find_program(VALGRIND_EXECUTABLE NAMES valgrind PATHS /usr/bin /usr/local/bin)
find_program(
VALGRIND_EXECUTABLE
NAMES valgrind
PATHS /usr/bin /usr/local/bin)

if (VALGRIND_EXECUTABLE)
if(VALGRIND_EXECUTABLE)
set(MEMORYCHECK_COMMAND "${VALGRIND_EXECUTABLE}")
set(MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --show-leak-kinds=definite --errors-for-leak-kinds=definite --trace-children=yes --error-exitcode=1 --log-fd=1 --suppressions=${CMAKE_CURRENT_SOURCE_DIR}/valgrind.supp")
set(MEMORYCHECK_COMMAND_OPTIONS
"--leak-check=full --show-leak-kinds=definite --errors-for-leak-kinds=definite --trace-children=yes --error-exitcode=1 --log-fd=1 --suppressions=${CMAKE_CURRENT_SOURCE_DIR}/valgrind.supp"
)
else()
message(FATAL_ERROR "Valgrind not found")
endif()
Expand Down
2 changes: 1 addition & 1 deletion scripts/gen_circleci_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def check(name: str, command: str, paths: t.Set[str]) -> None:
check(
name="Style",
command="hatch run lint:style",
paths={"docker*", "*.py", "*.pyi", "hatch.toml", "pyproject.toml", "*.cpp", "*.h"},
paths={"docker*", "*.py", "*.pyi", "hatch.toml", "pyproject.toml", "*.cpp", "*.h", "CMakeLists.txt"},
)
check(
name="Typing",
Expand Down

0 comments on commit e2911cd

Please sign in to comment.