Skip to content

Commit 4b12ed4

Browse files
oulgenfacebook-github-bot
authored andcommitted
Add package and package/ffi_bridge OSS cargo dependencies
Reviewed By: kavoor Differential Revision: D43641908 fbshipit-source-id: 1f8dc10bfc317ebbf56e4a0eef7b0977d8db14c3
1 parent 78ea2dc commit 4b12ed4

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed

CMake/HPHPFindLibs.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ macro(hphp_link target)
428428
target_link_libraries(${target} ${VISIBILITY} brotli)
429429
target_link_libraries(${target} ${VISIBILITY} hhbc_ast_header)
430430
target_link_libraries(${target} ${VISIBILITY} compiler_ffi)
431+
target_link_libraries(${target} ${VISIBILITY} package_ffi)
431432
target_link_libraries(${target} ${VISIBILITY} parser_ffi)
432433
target_link_libraries(${target} ${VISIBILITY} hhvm_types_ffi)
433434
target_link_libraries(${target} ${VISIBILITY} hhvm_hhbc_defs_ffi)

hphp/hack/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ function(build_cxx_bridge NAME)
297297
target_include_directories("${NAME}" PRIVATE "${GENERATED_CXXBRIDGE}")
298298
endfunction()
299299

300+
build_cxx_bridge(
301+
package_ffi
302+
DIR "src/package/ffi_bridge"
303+
)
300304
build_cxx_bridge(
301305
parser_ffi
302306
DIR "src/parser/ffi_bridge"

hphp/hack/src/Cargo.lock

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

hphp/hack/src/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ members = [
4646
"ocamlrep_marshal/cargo/ocamlrep_marshal_ffi_bindings",
4747
"oxidized",
4848
"oxidized_by_ref",
49+
"package/cargo",
50+
"package/ffi_bridge",
4951
"parser/api/cargo/cst_and_decl_parser",
5052
"parser/api/cargo/decl_mode_parser",
5153
"parser/api/cargo/direct_decl_parser",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
let _build = cxx_build::bridge("package_ffi.rs");
3+
}

0 commit comments

Comments
 (0)