Skip to content

Commit 1f2d5d9

Browse files
author
Brian J. Cardiff
authored
Drop workaround for shards compilation in musl (#65)
1 parent cfe843f commit 1f2d5d9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

linux/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,8 @@ RUN git clone https://github.com/crystal-lang/shards \
9696
&& git checkout ${shards_version} \
9797
&& shards install --production \
9898
\
99-
# Hack to make shards not segfault
100-
&& echo 'require "llvm/lib_llvm"; require "llvm/enums"; require "./src/shards"' > hack.cr \
10199
&& /crystal/bin/crystal build --stats --target ${musl_target} \
102-
hack.cr -o shards --static ${release:+--release} \
100+
./src/shards.cr -o shards --static ${release:+--release} \
103101
&& ([ "$(ldd shards | wc -l)" -eq "1" ] || { echo 'shards is not statically linked'; ldd shards; exit 1; })
104102

105103
COPY files/crystal-wrapper /output/bin/crystal

0 commit comments

Comments
 (0)