Skip to content

Commit 34b6ac2

Browse files
committed
fix missing openfhe and lld misconfig in cibuildwheel
1 parent 2aba09e commit 34b6ac2

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.bazelrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ build --action_env=CXX=clang++
2323
build --host_action_env=CC=clang
2424
build --host_action_env=CXX=clang++
2525

26-
# linux-specific options
27-
build:linux --linkopt="-fuse-ld=lld"
28-
2926
# macos specific options
3027
# openmp is not supported in apple clang
3128
build:macos --//:enable_openmp=0

.github/install_cibuildwheel_deps.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@ if ! bazel version; then
77
arch="arm64"
88
fi
99
echo "Downloading $arch Bazel binary from GitHub releases."
10-
curl -L -o $HOME/bin/bazel --create-dirs "https://github.com/bazelbuild/bazel/releases/download/8.1.0/bazel-8.1.0-linux-$arch"
10+
curl -L -o $HOME/bin/bazel --create-dirs "https://github.com/bazelbuild/bazel/releases/download/8.4.0/bazel-8.4.0-linux-$arch"
1111
chmod +x $HOME/bin/bazel
1212
else
1313
# Bazel is installed for the correct architecture
1414
exit 0
1515
fi
16+
17+
# Openmp for OpenFHE
18+
#
19+
# Using `gomp` here for best compatibility with gcc, but `libomp` is also an
20+
# option if it doesn't work. Note that `-fopenmp` is supposed to automatically
21+
# switch between `libgomp` and `libomp` depending on the compiler.
22+
dnf install -y libgomp

bazel/openfhe/copts.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ OPENFHE_COPTS = [
2525

2626
_OPENFHE_LINKOPTS = [
2727
"-fopenmp",
28-
"-lomp",
2928
]
3029

3130
_OPENMP_COPTS = [

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ where = ["frontend"]
6969
[tool.cibuildwheel]
7070
build = "cp311-* cp312-* cp313-*"
7171
build-frontend = "build[uv]"
72-
skip = "*-musllinux_* pp-*"
72+
skip = "*-musllinux_*"
7373
# The test must be run in an isolated directory so that python uses the wheel
7474
# when running `import heir` instead of the local source files. cibuildwheel
7575
# creates an isolated directory for this purpose, and cd's to it before running

0 commit comments

Comments
 (0)