about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2022-08-04 16:25:01 -0700
committerJosh Stone <jistone@redhat.com>2022-08-04 16:25:01 -0700
commita8c12c7458ff21f6bcdca710a21c80ee15a46013 (patch)
tree26aef4dada9ed2279a038b9b021294d11f3f6536
parentc7bba72404fb26fec1e13f7ce9a7f98849f2aab0 (diff)
downloadrust-a8c12c7458ff21f6bcdca710a21c80ee15a46013.tar.gz
rust-a8c12c7458ff21f6bcdca710a21c80ee15a46013.zip
Link /rustroot/lib stuff for clang -m32 to see
-rwxr-xr-xsrc/ci/docker/host-x86_64/dist-x86_64-linux/build-gcc.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ci/docker/host-x86_64/dist-x86_64-linux/build-gcc.sh b/src/ci/docker/host-x86_64/dist-x86_64-linux/build-gcc.sh
index 7992ec3b991..9932b250566 100755
--- a/src/ci/docker/host-x86_64/dist-x86_64-linux/build-gcc.sh
+++ b/src/ci/docker/host-x86_64/dist-x86_64-linux/build-gcc.sh
@@ -39,3 +39,8 @@ ln -s gcc /rustroot/bin/cc
 cd ..
 rm -rf gcc-build
 rm -rf gcc-$GCC
+
+# FIXME: clang doesn't find 32-bit libraries in /rustroot/lib,
+# but it does look all the way under /rustroot/lib/[...]/32,
+# so we can link stuff there to help it out.
+ln /rustroot/lib/*.{a,so} -rst /rustroot/lib/gcc/x86_64-pc-linux-gnu/$GCC/32/