Skip to content

Commit 6929009

Browse files
committed
Fix pdb compile on Free edition
1 parent 8534476 commit 6929009

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

rust/Cargo.lock

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ members = [
3333
"examples/hlil_visitor",
3434
"examples/hlil_lifter",
3535
"examples/pdb-ng",
36+
"examples/pdb-ng/demo",
3637
"examples/template"
3738
]
3839

rust/examples/pdb-ng/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,11 @@ endif()
2929
if(DEMO)
3030
set(CARGO_FEATURES --features demo --manifest-path ${PROJECT_SOURCE_DIR}/demo/Cargo.toml)
3131

32-
set(OUTPUT_FILE_NAME ${CMAKE_STATIC_LIBRARY_PREFIX}${PROJECT_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX})
32+
set(OUTPUT_FILE_NAME ${CMAKE_STATIC_LIBRARY_PREFIX}${PROJECT_NAME}_static${CMAKE_STATIC_LIBRARY_SUFFIX})
3333
set(OUTPUT_PDB_NAME ${CMAKE_STATIC_LIBRARY_PREFIX}${PROJECT_NAME}.pdb)
3434
set(OUTPUT_FILE_PATH ${CMAKE_BINARY_DIR}/${OUTPUT_FILE_NAME})
3535
set(OUTPUT_PDB_PATH ${CMAKE_BINARY_DIR}/${OUTPUT_PDB_NAME})
3636

37-
set(STATIC_FILE_NAME ${CMAKE_STATIC_LIBRARY_PREFIX}${PROJECT_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX})
38-
set(STATIC_FILE_PATH ${CMAKE_BINARY_DIR}/${STATIC_FILE_NAME})
39-
4037
set(BINJA_LIB_DIR $<TARGET_FILE_DIR:binaryninjacore>)
4138
else()
4239
set(CARGO_FEATURES "")

rust/examples/pdb-ng/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,3 @@ regex = "1"
1818

1919
[features]
2020
demo = []
21-
22-
[profile.release]
23-
debug = 1

rust/examples/pdb-ng/demo/Cargo.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "pdb-import-plugin"
2+
name = "pdb-import-plugin-static"
33
version = "0.1.0"
44
edition = "2021"
55

@@ -17,10 +17,5 @@ pdb = "^0.8"
1717
cab = "^0.4"
1818
regex = "1"
1919

20-
[patch.crates-io]
21-
# Patched pdb crate to implement some extra structures
22-
# If I haven't PR'd this to their repo by the time we ship, DM me until I get to it
23-
pdb = { path = "../pdb-0.8.0-patched" }
24-
2520
[features]
2621
demo = []

0 commit comments

Comments
 (0)