Skip to content

Commit 942d7a7

Browse files
author
Mishal Shah
committed
Merge remote-tracking branch 'origin/main' into replace-swift-lang-with-swiftlang
2 parents f621c05 + ac22dc0 commit 942d7a7

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

platforms/Linux/amazonlinux/2/swiftlang.spec

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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
133130
export VERBOSE=1
134131

platforms/Linux/centos/7/build_rpm.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ cp patches/*.patch $HOME/rpmbuild/SOURCES/
3232
pushd $HOME/rpmbuild/SPECS
3333
# install all the dependencies needed to build Swift from the spec file itself
3434
yum-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
3639
spectool -g -R ./swiftlang.spec
3740
# Now we proceed to build Swift. If this is successful, we

platforms/Linux/centos/7/swiftlang.spec

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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
134131
export VERBOSE=1
135132

0 commit comments

Comments
 (0)