Skip to content

Commit 7bc1434

Browse files
committed
Fix library name.
1 parent d1a05dd commit 7bc1434

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ddtrace/internal/datadog/profiling/cmake/FindLibNative.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ file(GLOB LIB_FILES "${SOURCE_LIB_DIR}/*.so" "${SOURCE_LIB_DIR}/*.lib" "${SOURCE
1111
file(COPY ${LIB_FILES} DESTINATION ${DEST_LIB_OUTPUT_DIR})
1212

1313
# Add imported library target
14-
add_library(native SHARED IMPORTED)
14+
add_library(_native SHARED IMPORTED)
1515

16-
set_target_properties(native PROPERTIES
17-
IMPORTED_LOCATION ${DEST_LIB_OUTPUT_DIR}/libnative.so
16+
set_target_properties(_native PROPERTIES
17+
IMPORTED_LOCATION ${DEST_LIB_OUTPUT_DIR}/lib_native.so
1818
INTERFACE_INCLUDE_DIRECTORIES ${DEST_INCLUDE_DIR}
1919
)
2020

ddtrace/internal/datadog/profiling/dd_wrapper/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ add_ddup_config(dd_wrapper)
8383
target_include_directories(dd_wrapper PRIVATE include ${Datadog_INCLUDE_DIRS})
8484

8585
if(WIN32)
86-
target_link_libraries(dd_wrapper PRIVATE native)
86+
target_link_libraries(dd_wrapper PRIVATE _native)
8787
else()
88-
target_link_libraries(dd_wrapper PRIVATE native Threads::Threads)
88+
target_link_libraries(dd_wrapper PRIVATE _native Threads::Threads)
8989
endif()
9090

9191
# Figure out the suffix. Try to approximate the cpython way of doing things.

src/native/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pyo3-build-config = "0.21.2"
3131
build_common = { git = "https://github.com/DataDog/libdatadog", rev = "v18.0.0", features = ["cbindgen"] }
3232

3333
[lib]
34-
name = "native"
34+
name = "_native"
3535
path = "lib.rs"
3636
crate-type = ["cdylib"]
3737

0 commit comments

Comments
 (0)