Provide the clang wrapper as a symlink to the script instead of duplicating the script

This commit is contained in:
Martin Storsjö committed 2017-12-15 12:07:23 +02:00
1 parent a52d13b639
commit 2a0172efd4
1 file changed
+4 -3
+4 -3
View File
@@ -63,10 +63,11 @@ RUN cd mingw-w64/mingw-w64-headers && \
done
# Install the usual $TUPLE-clang binaries
COPY wrappers/clang-target-wrapper /build/wrappers/
RUN for arch in $TOOLCHAIN_ARCHS; do \
COPY wrappers/clang-target-wrapper /build/prefix/bin
RUN cd $TOOLCHAIN_PREFIX/bin && \
for arch in $TOOLCHAIN_ARCHS; do \
for exec in clang clang++; do \
cp wrappers/clang-target-wrapper $TOOLCHAIN_PREFIX/bin/${arch}-w64-mingw32-${exec}; \
ln -s clang-target-wrapper $arch-w64-mingw32-$exec; \
done; \
done