Skip to content

Commit

Permalink
CI: enable clang tests (#898)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebookincubator/zstrong#898

Reviewed By: malanka

Differential Revision: D59065671

fbshipit-source-id: 2a09ae13e1d4c62a7b9a907cca0e911672435ad1
  • Loading branch information
Simon Marlow authored and facebook-github-bot committed Jul 3, 2024
1 parent 346775d commit 3dfff8f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
8 changes: 7 additions & 1 deletion build/fbcode_builder/getdeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,14 +844,20 @@ def run_project_cmd(self, args, loader, manifest):
# Accumulate the install directories so that the build steps
# can find their dep installation
install_dirs = []
dep_manifests = []

for m in projects:
inst_dir = loader.get_project_install_dir_respecting_install_prefix(m)
install_dirs.append(inst_dir)
dep_manifests.append(m)

if m == manifest:
ctx = loader.ctx_gen.get_context(m.name)
env = loader.build_opts.compute_env_for_install_dirs(
loader, dep_manifests, ctx
)
dep_munger = create_dyn_dep_munger(
loader.build_opts, install_dirs, args.strip
loader.build_opts, env, install_dirs, args.strip
)
if dep_munger is None:
print(f"dynamic dependency fixups not supported on {sys.platform}")
Expand Down
5 changes: 5 additions & 0 deletions build/fbcode_builder/manifests/clang
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[manifest]
name = clang

[rpms]
clang15-devel
8 changes: 6 additions & 2 deletions build/fbcode_builder/manifests/glean
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ glog
folly
rocksdb
xxhash
llvm
clang
re2

[build]
builder = make
Expand All @@ -29,13 +32,14 @@ builder = make
cabal-update
all
glass
glean-clang
EXTRA_GHC_OPTS=-j4 +RTS -A32m -n4m -RTS
CABAL_CONFIG_FLAGS=-f-clang-tests -f-hack-tests -f-typescript-tests -f-python-tests -f-dotnet-tests -f-go-tests -f-rust-tests -f-java-lsif-tests -f-flow-tests
CABAL_CONFIG_FLAGS=-f-hack-tests -f-typescript-tests -f-python-tests -f-dotnet-tests -f-go-tests -f-rust-tests -f-java-lsif-tests -f-flow-tests

[make.install_args]
install

[make.test_args]
test
EXTRA_GHC_OPTS=-j4 +RTS -A32m -n4m -RTS
CABAL_CONFIG_FLAGS=-f-clang-tests -f-hack-tests -f-typescript-tests -f-python-tests -f-dotnet-tests -f-go-tests -f-rust-tests -f-java-lsif-tests -f-flow-tests
CABAL_CONFIG_FLAGS=-f-hack-tests -f-typescript-tests -f-python-tests -f-dotnet-tests -f-go-tests -f-rust-tests -f-java-lsif-tests -f-flow-tests
5 changes: 5 additions & 0 deletions build/fbcode_builder/manifests/llvm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[manifest]
name = llvm

[rpms]
llvm15-devel

0 comments on commit 3dfff8f

Please sign in to comment.