Skip to content

ci: iast unvendor pybind11 (with build requirement) #13711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
871bf84
improve iast cmake
gnufede Jun 17, 2025
a55ce12
remove vendored pybind11
gnufede Jun 17, 2025
c2d1dfb
wip
gnufede Jun 17, 2025
40783fd
fix globs, use sccache
gnufede Jun 17, 2025
cc5eb02
explicit linker language, lto disabled just for absl
gnufede Jun 17, 2025
6be5630
filename component
gnufede Jun 17, 2025
f74d7be
format
gnufede Jun 17, 2025
ffd90a5
fix source file list
gnufede Jun 17, 2025
1da0e19
modify tests cmakelist
gnufede Jun 17, 2025
f9f42a1
tests and sccache
gnufede Jun 17, 2025
5b9fe37
fix fetchtcontentdeclare
gnufede Jun 17, 2025
3c20437
other cmakelists
gnufede Jun 17, 2025
e693f1d
remove sccache use
gnufede Jun 17, 2025
52c9fe1
Revert "other cmakelists"
gnufede Jun 17, 2025
fce357d
Merge branch 'main' into gnufede/iast-cmakelist-revamp
gnufede Jun 18, 2025
6c31856
re enable lto on abseil
gnufede Jun 18, 2025
843f7b9
fetchcontent download extract timestamp
gnufede Jun 17, 2025
0bf1e08
revert other changes
gnufede Jun 18, 2025
8192b9f
revert other cmakelists
gnufede Jun 18, 2025
6f05f4d
switch from fetchcontent to build requirement
gnufede Jun 18, 2025
74997c1
move fetchcontent include
gnufede Jun 18, 2025
24316ef
switch to pybind11[global]
gnufede Jun 18, 2025
bc5146e
tests cmake
gnufede Jun 18, 2025
82f4823
global pybind11 install in hatch
gnufede Jun 18, 2025
01885c4
include development.embed
gnufede Jun 18, 2025
2a573b5
remove development.embed
gnufede Jun 18, 2025
3a68a46
use no_extras
gnufede Jun 18, 2025
582e8b1
remove findpython
gnufede Jun 18, 2025
914824c
set old policy
gnufede Jun 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions ddtrace/appsec/_iast/_taint_tracking/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.19)
include(FetchContent)
cmake_policy(SET CMP0148 OLD)

set(APP_NAME _native)
option(BUILD_MACOS "Build for MacOS" OFF)
Expand Down Expand Up @@ -44,6 +44,10 @@ elseif(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-DDONT_COMPILE_ABSEIL) # Define DONT_COMPILE_ABSEIL preprocessor variable
else()
message("Release, RelWithDebInfo, or MinSizeRel mode: using abseil (DD_COMPILE_ABSEIL unset or not 0/false)")
include(FetchContent)
set(FETCHCONTENT_BASE_DIR
${CMAKE_BINARY_DIR}/_deps
CACHE PATH "Dependency cache dir")
FetchContent_Declare(absl URL "https://github.com/abseil/abseil-cpp/archive/refs/tags/20250127.1.zip")
FetchContent_MakeAvailable(absl)
endif()
Expand Down Expand Up @@ -73,14 +77,16 @@ file(
# 'i18n' for the internationalization library include_directories(${ICU_INCLUDE_DIRS}) list(APPEND ICU_LIBS
# ${ICU_LIBRARIES})

find_package(PythonInterp REQUIRED)
find_package(PythonLibs REQUIRED)
find_package(pybind11 CONFIG REQUIRED)
# Debug messages
message(STATUS "PYTHON_LIBRARIES = ${Python_LIBRARIES}")
message(STATUS "PYTHON_EXECUTABLE = ${Python_EXECUTABLE}")
message(STATUS "PYTHON_INCLUDE_DIRS = ${PYTHON_INCLUDE_DIRS}")
message(STATUS "Python_EXECUTABLE = ${Python_EXECUTABLE}")
# message(STATUS "ICU_LIBRARIES = ${ICU_LIBRARIES}") message(STATUS "ICU_INCLUDE_DIRS = ${ICU_INCLUDE_DIRS}")

add_subdirectory(_vendor/pybind11)
if(NATIVE_TESTING)
add_subdirectory(tests EXCLUDE_FROM_ALL)
endif()
Expand Down
Empty file.
Loading
Loading