Skip to content

Commit

Permalink
no ld flags for llvm build in wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
bettinaheim committed Jan 11, 2024
1 parent 56b5d01 commit 54aa8d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions docker/build/devdeps.manylinux.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ RUN dnf install -y --nobest --setopt=install_weak_deps=False \

# Build the the LLVM libraries and compiler toolchain needed to build CUDA Quantum.
ADD ./scripts/build_llvm.sh /scripts/build_llvm.sh
ENV LLVM_BUILD_LINKER_FLAGS="-static-libgcc -static-libstdc++"
RUN LDFLAGS="$LLVM_BUILD_LINKER_FLAGS" LLVM_PROJECTS='clang;lld;mlir' \
bash /scripts/build_llvm.sh -s /llvm-project -c Release -v
RUN LLVM_PROJECTS='clang;lld;mlir' \
bash /scripts/build_llvm.sh -s /llvm-project -c Release -v
# No clean up of the build or source directory,
# since we need to re-build llvm for each python version to get the bindings.

Expand Down
3 changes: 1 addition & 2 deletions docker/release/cudaq.wheel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ RUN echo "Building MLIR bindings for python${python_version}" \
&& python${python_version} -m pip install --no-cache-dir numpy \
&& rm -rf "$LLVM_INSTALL_PREFIX/src" "$LLVM_INSTALL_PREFIX/python_packages" \
&& export Python3_EXECUTABLE="$(which python${python_version})" \
&& LDFLAGS="$LLVM_BUILD_LINKER_FLAGS" \
bash /scripts/build_llvm.sh -s /llvm-project -c Release -v
&& bash /scripts/build_llvm.sh -s /llvm-project -c Release -v

# Install additional dependencies
# They might be optionally pulled in during auditwheel if necessary.
Expand Down

0 comments on commit 54aa8d4

Please sign in to comment.