-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: We need to upgrade ocamlrep such that it is ocaml 5.1.0 compatible. This diff vendors in code from `/fbcode/common/ocaml/interop` (minus changes to `TARGETS` files of which there are functionally none) In a future diff I will introduce a way to achieve this automatically for the OSS version of ERRPY (and will remove the vendoring for the internal version) Reviewed By: vsiles Differential Revision: D51024748 fbshipit-source-id: cacecd437d6b9a96722ef786d90d440108c70266
- Loading branch information
1 parent
cdcda95
commit 75ddb53
Showing
24 changed files
with
130 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under both the MIT license found in the | ||
# LICENSE-MIT file in the root directory of this source tree and the Apache | ||
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory | ||
# of this source tree. | ||
|
||
[build] | ||
rustflags = [ | ||
"-Drust-2018-idioms", | ||
"-Dwarnings", | ||
"-Dunused-crate-dependencies" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,15 +9,15 @@ commands: | |
- run: | ||
name: Download rust | ||
command: | | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly-2023-04-23 -y | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly-2023-07-10 -y | ||
init_opam: | ||
description: Initialize opam | ||
steps: | ||
- run: | ||
name: Init opam | ||
command: | | ||
opam init --compiler=4.14.0 --disable-sandboxing -y | ||
opam init --compiler=5.1.0 --disable-sandboxing -y | ||
setup_ocaml_tp: | ||
description: Write symlinks shim/third-party/ocaml | ||
|
@@ -52,17 +52,14 @@ commands: | |
- run: | ||
name: Brew install | ||
command: | | ||
# Avoid `brew link` step errors | ||
rm -f '/usr/local/lib/python3.9/site-packages/six.py' | ||
brew unlink [email protected] | ||
brew install cmake coreutils opam llvm zstd wget | ||
- init_opam | ||
- run: | ||
name: Set environment variables | ||
command: | | ||
echo 'source "$HOME"/.cargo/env' >> "$BASH_ENV" | ||
echo 'export PATH=/usr/local/opt/llvm/bin:/opt/homebrew/bin:"$PATH"' >> "$BASH_ENV" | ||
echo 'eval $(opam env)' >> "$BASH_ENV" | ||
echo 'export PATH=/usr/local/opt/llvm/bin:"$PATH"' >> "$BASH_ENV" | ||
- setup_ocaml_tp | ||
|
||
cargo: | ||
|
@@ -95,7 +92,7 @@ commands: | |
- run: | ||
name: Install reindeer | ||
command: | | ||
cargo +nightly-2023-04-23 install --git https://github.com/facebookincubator/reindeer.git reindeer --force | ||
cargo install --git https://github.com/facebookincubator/reindeer.git reindeer --force | ||
reindeer: | ||
description: Use reindeer to vendor & buckify rust 3rd-party deps | ||
|
@@ -141,8 +138,8 @@ jobs: | |
description: | | ||
macOS cargo build & test | ||
macos: | ||
xcode: 13.4.1 | ||
resource_class: macos.x86.medium.gen2 | ||
xcode: "14.2.0" | ||
resource_class: macos.m1.medium.gen1 | ||
steps: | ||
- checkout | ||
- setup_macos_env | ||
|
@@ -168,13 +165,13 @@ jobs: | |
description: | | ||
macOS buck build | ||
macos: | ||
xcode: 13.4.1 | ||
resource_class: macos.x86.medium.gen2 | ||
xcode: "14.2.0" | ||
resource_class: macos.m1.medium.gen1 | ||
steps: | ||
- checkout | ||
- setup_macos_env | ||
- install_buck: | ||
triple: "x86_64-apple-darwin" | ||
triple: "aarch64-apple-darwin" | ||
- install_reindeer | ||
- reindeer | ||
- buck_tp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.