Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ jobs:
fi
source ~/dlang/$HOST_DC/activate

# install distro packages for SDC
export DEBIAN_FRONTEND=noninteractive
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
echo 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-19 main' | sudo tee /etc/apt/sources.list.d/llvm.list
sudo apt-get -qq update
sudo apt-get install -qq llvm-19-dev lld-19 nasm
sudo ln -s lld-19 /usr/bin/ld.lld # so that the SDC Makefile detects it

# build SDC's libdmdalloc.a
LLVM_CONFIG=llvm-config-19 SDFLAGS=-O3 make -C sdc -j$(nproc) lib/libdmdalloc.a
ls -l sdc/lib/libdmdalloc.a

# patch DMD version if this CI job was triggered by a tag
tag=""
if [[ '${{ github.ref }}' = refs/tags/v* ]]; then
Expand Down
6 changes: 5 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "dmd"]
path = dmd
url = git@github.com:dlang/dmd.git
url = git@github.com:symmetryinvestments/dmd.git
[submodule "phobos"]
path = phobos
url = git@github.com:dlang/phobos.git
Expand All @@ -13,3 +13,7 @@
[submodule "ninja"]
path = ninja
url = git@github.com:symmetryinvestments/ninja.git
[submodule "sdc"]
path = sdc
url = git@github.com:schveiguy/sdc.git
branch = dmdbuild
1 change: 1 addition & 0 deletions sdc
Submodule sdc added at 8de0fe