Skip to content

Commit

Permalink
Fix buck2 targets command for non-ocamlrep users of the fbcode shim (#79
Browse files Browse the repository at this point in the history
)

Summary:
Pull Request resolved: #79
X-link: pytorch/executorch#3563
X-link: facebook/folly#2185

Test Plan: CI on the ocamlrep PR passes

Reviewed By: shayne-fletcher

Differential Revision: D57006939

Pulled By: bigfootjon

fbshipit-source-id: bd70508ee634e8089b41f19cbfd471a6a7b9901d
  • Loading branch information
bigfootjon authored and facebook-github-bot committed May 15, 2024
1 parent 7a2feef commit 2f9c8b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ocaml-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set -u

# Link 'third-party/ocaml/opam'.
if [ ! -L shim/third-party/ocaml/opam ]; then
(cd shim/third-party/ocaml && ln -s "$OPAM_SWITCH_PREFIX" opam)
(cd shim/third-party/ocaml && rm -rf opam && ln -s "$OPAM_SWITCH_PREFIX" opam)
else
echo "Link 'shim/third-party/ocaml/opam' exists. To overwrite it, first remove it and run $0 again"
fi
1 change: 1 addition & 0 deletions shim/third-party/ocaml/opam/lib/ocaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fake file so that buck2 can run in non-ocamlrep repos

0 comments on commit 2f9c8b0

Please sign in to comment.