Skip to content

Commit 6991c07

Browse files
committed
statically linked LDC on Alpine
1 parent 4644f3b commit 6991c07

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/alpine_musl.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,11 @@ jobs:
3232
cd bootstrap
3333
cmake -G Ninja .. \
3434
-DCMAKE_BUILD_TYPE=Release \
35-
-DCMAKE_INSTALL_PREFIX="/opt/ldc2" \
36-
-DCMAKE_EXE_LINKER_FLAGS=-static-libstdc++ \
37-
-DD_COMPILER_FLAGS=-link-defaultlib-shared=false \
3835
-DBUILD_SHARED_LIBS=OFF
3936
ninja obj/ldc2.o all
4037
bin/ldc2 --version
4138
cd ..
4239
43-
# TODO: Add '-DLLVM_IS_SHARED=OFF' when static linking is fully supported
4440
# TSan and XRay do not work.
4541
- name: Build LDC & LDC D unittests & defaultlib unittest runners
4642
shell: alpine.sh {0}
@@ -50,7 +46,9 @@ jobs:
5046
-DD_COMPILER=./bootstrap/bin/ldmd2 \
5147
-DCMAKE_BUILD_TYPE=Release \
5248
-DCMAKE_INSTALL_PREFIX="/opt/ldc2" \
53-
-DCMAKE_EXE_LINKER_FLAGS=-static-libstdc++ \
49+
-DINCLUDE_INSTALL_DIR="/opt/ldc2/import" \
50+
-DLLVM_IS_SHARED=OFF \
51+
-DCMAKE_EXE_LINKER_FLAGS=-static \
5452
-DD_COMPILER_FLAGS=-link-defaultlib-shared=false \
5553
-DBUILD_SHARED_LIBS=OFF \
5654
-DTEST_COMPILER_RT_LIBRARIES="profile;lsan;asan;msan;fuzzer"

0 commit comments

Comments
 (0)