Skip to content

Commit 2bba69c

Browse files
committed
CentOS: build with gcc-8
1 parent a75fcec commit 2bba69c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

centos-8/Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ ENV version=$v8_version
55

66
ENV target x86.static
77
ENV GYP_GENERATORS ninja
8-
ENV PATH="/depot_tools:/opt/rh/gcc-toolset-10/root/bin:${PATH}"
8+
ENV PATH="/depot_tools:${PATH}"
99
ENV pkgdir /package
1010

11-
RUN dnf update -y && \
12-
dnf upgrade -y && \
13-
dnf install -y python38 bzip2 xz git glib2-devel gcc-toolset-10-{gcc-c++,libatomic-devel} && \
11+
RUN yum update -y && \
12+
yum upgrade -y && \
13+
yum install -y python38 xz git gcc-c++ bzip2 libatomic glib2-devel && \
1414
ln -s /usr/bin/python3 /usr/bin/python
1515

1616
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools
@@ -22,6 +22,9 @@ WORKDIR /v8
2222
RUN gclient sync -D --force --reset && \
2323
gclient sync --revision ${version}
2424

25+
# Workaround for GCC-8 bug
26+
RUN sed -i.bak 's|tuple()|tuple{}|g' src/compiler/turboshaft/operations.h
27+
2528
RUN gn gen ${target} -vv --fail-on-unused-args \
2629
--args='v8_monolithic=true \
2730
v8_static_library=true \

0 commit comments

Comments
 (0)