File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,6 @@ mv Yams-%{yams_version} yams
126126# Adjust python version hwasan_symbolize
127127%patch1 -p1
128128
129- # Fix python to python3
130- ln -s /usr/bin/python3 /usr/bin/python
131-
132129%build
133130export VERBOSE=1
134131
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ cp patches/*.patch $HOME/rpmbuild/SOURCES/
3232pushd $HOME /rpmbuild/SPECS
3333# install all the dependencies needed to build Swift from the spec file itself
3434yum-builddep -y ./swiftlang.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
3538# get the sources for Swift as defined in the spec file
3639spectool -g -R ./swiftlang.spec
3740# Now we proceed to build Swift. If this is successful, we
Original file line number Diff line number Diff line change @@ -127,9 +127,6 @@ mv Yams-%{yams_version} yams
127127# Adjust python version hwasan_symbolize
128128%patch1 -p1
129129
130- # Fix python to python3
131- ln -s /usr/bin/python3 /usr/bin/python
132-
133130%build
134131export VERBOSE=1
135132
You can’t perform that action at this time.
0 commit comments