We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8c507bd + 18488f6 commit ac22dc0Copy full SHA for ac22dc0
platforms/Linux/centos/7/build_rpm.sh
@@ -32,6 +32,9 @@ cp patches/*.patch $HOME/rpmbuild/SOURCES/
32
pushd $HOME/rpmbuild/SPECS
33
# install all the dependencies needed to build Swift from the spec file itself
34
yum-builddep -y ./swift-lang.spec
35
+# Workaround to support clang-3.5 or a later version
36
+echo -e ". /opt/rh/sclo-git25/enable\n. /opt/rh/llvm-toolset-7/enable\n. /opt/rh/devtoolset-8/enable\n" >> $HOME/.bashrc
37
+sed -i -e 's/\*__block/\*__libc_block/g' /usr/include/unistd.h
38
# get the sources for Swift as defined in the spec file
39
spectool -g -R ./swift-lang.spec
40
# Now we proceed to build Swift. If this is successful, we
0 commit comments