forked from rui314/mold
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
64 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
options.inc | ||
core | ||
ld | ||
oneTBB |
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,9 +1,3 @@ | ||
[submodule "oneTBB"] | ||
path = oneTBB | ||
url = https://github.com/oneapi-src/oneTBB.git | ||
[submodule "mimalloc"] | ||
path = mimalloc | ||
url = https://github.com/microsoft/mimalloc.git | ||
[submodule "xxHash"] | ||
path = xxHash | ||
url = https://github.com/Cyan4973/xxHash.git |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash -x | ||
|
||
# This is a shell script to build a statically-linked mold | ||
# executable using Docker, so that it is easy to build mold | ||
# on non-Ubuntu 20.04 machines. | ||
# | ||
# A docker image used for building mold is persistent. | ||
# Run `docker image rm mold-build-ubuntu20` to remove the image | ||
# from disk. | ||
|
||
cat <<EOF | docker build -t mold-build-ubuntu20 - | ||
FROM ubuntu:20.04 | ||
RUN apt-get update && \ | ||
TZ=Europe/London apt-get install -y tzdata && \ | ||
apt-get install -y build-essential git clang lld cmake \ | ||
libstdc++-10-dev libxxhash-dev zlib1g-dev libssl-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
EOF | ||
|
||
if ! [ -d oneTBB ]; then | ||
git clone https://github.com/oneapi-src/oneTBB.git | ||
(cd oneTBB; git checkout --quiet v2020.3) | ||
fi | ||
|
||
docker run -it --rm -v `pwd`/oneTBB:/oneTBB -u $(id -u):$(id -g) \ | ||
mold-build-ubuntu20 \ | ||
make -C /oneTBB -j$(nproc) extra_inc=big_iron.inc | ||
|
||
docker run -it --rm -v `pwd`/oneTBB:/oneTBB -v `pwd`:/mold \ | ||
-u $(id -u):$(id -g) mold-build-ubuntu20 \ | ||
make EXTRA_CPPFLAGS=-I/oneTBB/include \ | ||
EXTRA_LDFLAGS="-fuse-ld=lld -static -L/$(ls -d oneTBB/build/linux_intel64_*_release)" \ | ||
-j$(nproc) -C /mold |
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
Submodule oneTBB
deleted from
eca91f
Submodule xxHash
deleted from
ea5393