jakoch / cpp-devbox

A Docker-based devcontainer for C++ development. Based on Debian with LLVM, GCC, CMake, vcpkg, mold, VulkanSDK, and Mesa.
MIT License
9 stars 9 forks source link

add mold linker #7

Closed jakoch closed 6 months ago

jakoch commented 6 months ago

add https://github.com/rui314/mold

RUN cd /opt && \
    git clone https://github.com/rui314/mold.git && \
    cd mold && \
    git checkout v2.31.0 && \
    ./install-build-deps.sh && \
    mkdir build && cd build && \
    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ .. && \
    cmake --build . -j $(nproc) && \
    cmake --install .
jakoch commented 6 months ago