Skip to content

Commit

Permalink
Use the correct compilers in Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
botder committed Jul 3, 2023
1 parent 9dcc651 commit f473ff1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ USER root
# Default build configuration
ENV AS_BUILDAGENT=0 \
BUILD_ARCHITECTURE=x64 \
BUILD_CONFIG=release
BUILD_CONFIG=release \
AR=x86_64-linux-gnu-gcc-ar-10 \
CC=x86_64-linux-gnu-gcc-10 \
CXX=x86_64-linux-gnu-g++-10

# Install build-time dependencies
RUN apt-get update && \
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile.i386
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ USER root
# Default build configuration
ENV AS_BUILDAGENT=0 \
BUILD_ARCHITECTURE=x86 \
BUILD_CONFIG=release
BUILD_CONFIG=release \
AR=x86_64-linux-gnu-gcc-ar-10 \
CC=x86_64-linux-gnu-gcc-10 \
CXX=x86_64-linux-gnu-g++-10

# Install build-time dependencies
RUN dpkg --add-architecture i386 && apt-get update && \
Expand Down

0 comments on commit f473ff1

Please sign in to comment.