process stuff
commit81a9747ebcc626f6e7cf364ab47ec0aec7566e68
authorAaron Orenstein <aorenste@meta.com>
Thu, 13 Oct 2022 15:43:04 +0000 (13 08:43 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 13 Oct 2022 15:43:04 +0000 (13 08:43 -0700)
tree3b4bad614f1bb401f634a8b3323bd6dc1e506750
parent80290bf07075ec1269ed8518abc1bdfdc3a7222f
process stuff

Summary: To use the runtime options we link against the Process stuff in HHVM.  When building in a non-HHVM context there's just too much stuff in there that we don't need - so convert the class into a namespace (that's really the way it was used anyway) and move the GetHostName() and GetCPUModel() functions into their own files.

Reviewed By: edwinsmith

Differential Revision: D39948455

fbshipit-source-id: 63b451ab5e7b25c844bb88fd759f9fbc30008b6d
13 files changed:
hphp/hack/src/Cargo.lock
hphp/hack/src/utils/hhvm_options/Cargo.toml
hphp/hack/src/utils/hhvm_options/hhvm_runtime_options/Cargo.toml [moved from hphp/hack/src/utils/hhvm_options/hhvm_runtime_options/hhvm_runtime_options/Cargo.toml with 78% similarity]
hphp/hack/src/utils/hhvm_options/hhvm_runtime_options/build.rs [new file with mode: 0644]
hphp/hack/src/utils/hhvm_options/hhvm_runtime_options/ffi_bridge.cpp [copied from hphp/hack/src/utils/hhvm_options/hhvm_runtime_options/ffi_bridge.h with 55% similarity]
hphp/hack/src/utils/hhvm_options/hhvm_runtime_options/ffi_bridge.h
hphp/hack/src/utils/hhvm_options/hhvm_runtime_options/ffi_bridge.rs
hphp/util/process-cpu.cpp [new file with mode: 0644]
hphp/util/process-cpu.h [new file with mode: 0644]
hphp/util/process-host.cpp [new file with mode: 0644]
hphp/util/process-host.h [new file with mode: 0644]
hphp/util/process.cpp
hphp/util/process.h