File tree 5 files changed +23
-10
lines changed
5 files changed +23
-10
lines changed Original file line number Diff line number Diff line change 31
31
32
32
- run : ../build/bin/ldc2 --version
33
33
shell : bash
34
-
35
- - run : ldd ../build/bin/ldc2
36
- if : runner.os == 'Linux'
37
- shell : bash
Original file line number Diff line number Diff line change 49
49
set -eux
50
50
cd ..
51
51
if type -P apk &>/dev/null; then
52
- exit 0 # FIXME: Alpine: LLVM too old for dynamic-compile support
52
+ exit 0 # Alpine: disabled dynamic-compile support
53
53
fi
54
54
if [[ '${{ runner.os }}' == Windows ]]; then
55
55
# add ldc-jit.dll dir to PATH
Original file line number Diff line number Diff line change 24
24
fi
25
25
echo "DMD=$DMD" >> $GITHUB_ENV
26
26
27
+ - name : ' Alpine: Set DFLAGS environment variable (-Xcc=-static)' # for fully statically linked dub etc.
28
+ if : inputs.os == 'alpine'
29
+ shell : bash
30
+ run : |
31
+ set -eux
32
+ echo "DFLAGS=-Xcc=-static${DFLAGS:+ $DFLAGS}" >> $GITHUB_ENV
33
+
27
34
- name : Build & copy dub
28
35
shell : bash
29
36
run : |
85
92
../installed/bin/reggae --version -b ninja
86
93
fi
87
94
95
+ - name : ' Linux: List executable dependencies'
96
+ if : runner.os == 'Linux'
97
+ shell : bash
98
+ run : |
99
+ set -euxo pipefail
100
+ cd ../installed/bin
101
+ for i in *; do
102
+ ls -lh $i
103
+ readelf -d $i | grep NEEDED || true
104
+ done
105
+
88
106
- name : Pack installation dir
89
107
shell : bash
90
108
run : |
Original file line number Diff line number Diff line change @@ -63,13 +63,15 @@ jobs:
63
63
-DBUILD_LTO_LIBS=ON
64
64
-DBUILD_SHARED_LIBS=OFF
65
65
-DLLVM_IS_SHARED=OFF
66
+ -DLDC_ENABLE_PLUGINS=OFF
67
+ -DLDC_DYNAMIC_COMPILE=OFF
66
68
-DLDC_INSTALL_LTOPLUGIN=OFF
67
69
-DCOMPILER_RT_LIBDIR_OS=linux
68
70
-DLDC_INSTALL_LLVM_RUNTIME_LIBS_ARCH=x86_64
69
71
-DTEST_COMPILER_RT_LIBRARIES="profile;lsan;asan;msan;fuzzer"
70
- -DCMAKE_EXE_LINKER_FLAGS=-static-libstdc++
72
+ -DCMAKE_EXE_LINKER_FLAGS=-static
71
73
-DJITRT_EXTRA_LDFLAGS=-static-libstdc++
72
- -DD_COMPILER_FLAGS="-O -flto=full"
74
+ -DD_COMPILER_FLAGS="-O -flto=full -Xcc=-static "
73
75
# FIXME: -defaultlib=phobos2-ldc-lto,druntime-ldc-lto
74
76
with_pgo : false
75
77
Original file line number Diff line number Diff line change @@ -136,9 +136,6 @@ if("${C_SYSTEM_LIBS}" STREQUAL "AUTO")
136
136
set (C_SYSTEM_LIBS m c)
137
137
elseif ("${TARGET_SYSTEM} " MATCHES "Linux" )
138
138
set (C_SYSTEM_LIBS m pthread rt dl)
139
- if ("${TARGET_SYSTEM} " MATCHES "musl" )
140
- list (APPEND C_SYSTEM_LIBS "unwind" )
141
- endif ()
142
139
elseif ("${TARGET_SYSTEM} " MATCHES "FreeBSD" )
143
140
set (C_SYSTEM_LIBS m pthread execinfo z)
144
141
else ()
You can’t perform that action at this time.
0 commit comments