-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from akawashiro/stop-using-glog
Stop using glog
- Loading branch information
Showing
9 changed files
with
67 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
FROM debian:12.2 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get install -y ninja-build cmake gcc g++ git python3 python3-distutils python3-dev python3-pip nasm clang-format libcap-dev tmux zsh neovim | ||
RUN apt-get update | ||
RUN apt-get install -y ninja-build cmake gcc g++ git python3 python3-distutils python3-dev python3-pip nasm clang-format libcap-dev tmux zsh neovim ccache gawk bison | ||
# RUN pip3 install torch==1.13.0+cpu -f https://download.pytorch.org/whl/torch_stable.html | ||
COPY . /sloader | ||
WORKDIR /sloader | ||
# TODO | ||
# RUN ./run-format.sh | ||
RUN ./scripts/clone_glibc.sh glibc-2.36 | ||
RUN ./scripts/build_glibc.sh | ||
RUN rm -rf build | ||
RUN mkdir build | ||
RUN cmake -GNinja -S . -B build | ||
RUN cmake --build build | ||
RUN cmake -GNinja -S . -B build -DCUSTOM_LIBC_PATH=/sloader/glibc-install | ||
RUN cmake --build build -j $(nproc) | ||
RUN cd build && ctest --output-on-failure -j $(nproc) | ||
RUN ./make-sloader-itself.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#! /bin/bash -eux | ||
|
||
cd $(git rev-parse --show-toplevel)/glibc-build | ||
if which bear; then | ||
LD_LIBRARY_PATH="" bear -- make all -j 20 | ||
LD_LIBRARY_PATH="" bear -- make install -j 20 | ||
else | ||
LD_LIBRARY_PATH="" make all -j $(nproc) | ||
LD_LIBRARY_PATH="" make install -j $(nproc) | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters