Fix position bug
[hiphop-php.git] / hphp / hack / dev_env.sh.in
blob2b75b74499bd9a08918a3dba17168a250b0502c0
1 #!/bin/sh
2 # Copyright (c) 2019, Facebook, Inc.
3 # All rights reserved.
5 # This source code is licensed under the MIT license found in the
6 # LICENSE file in the "hack" directory of this source tree.
8 # This file is processed by cmake; the produced file is intended for both
9 # internal usage by the build system, and for direct usage by people working on
10 # Hack itself from CMake builds:
12 # source $BUILD_DIR/hphp/hack/dev_env.sh
14 export CMAKE_SOURCE_DIR="@CMAKE_SOURCE_DIR@"
15 export CMAKE_INSTALL_FULL_SYSCONFDIR="@CMAKE_INSTALL_FULL_SYSCONFDIR@"
16 export CMAKE_INSTALL_FULL_BINDIR="@CMAKE_INSTALL_FULL_BINDIR@"
18 export HACK_NO_CARGO_VENDOR=true
19 export OPAMROOT="@OPAMROOT@"
20 export PYTHONPATH="@HPHP_HOME@" # needed for verify.py for `hack_dune_test`
21 export CARGO_HOME="@CMAKE_CURRENT_BINARY_DIR@/cargo_home"
22 export RUSTC="@RUSTC_BIN_DIR@/rustc"
23 export DUNE_BUILD_DIR="@DUNE_BUILD_DIR@"
24 export HACK_SOURCE_ROOT="@CMAKE_CURRENT_SOURCE_DIR@"
25 export HACK_BUILD_ROOT="@HACK_BUILD_ROOT@"
26 export HACK_BIN_DIR="@CMAKE_BINARY_DIR@/hphp/hack/bin"
27 export PATH="@RUSTC_BIN_DIR@:@CARGO_BIN_DIR@:@TP_BUILD_DIR@/ocaml/build/bin:$PATH"
28 export OCAML="@OCAML_EXECUTABLE@"
29 export OCAMLC="@OCAMLC_EXECUTABLE@"
31 export HACK_EXTRA_INCLUDE_PATHS="@extra_include_paths@"
32 export HACK_EXTRA_LINK_OPTS="@extra_link_opts@"
33 export HACK_EXTRA_LIB_PATHS="@extra_lib_paths@"
34 export HACK_EXTRA_NATIVE_LIBRARIES="@extra_native_libraries@"
36 eval $(opam env)