hylo-lang / Swifty-LLVM

Swifty interface for the LLVM compiler infrastructure.
Apache License 2.0
27 stars 5 forks source link

DevContainer: do away with postInstallCommand #37

Closed dabrahams closed 6 months ago

dabrahams commented 6 months ago

It /should/ be possible to do something like this in the Dockerfile directly (after moving make-pkgconfig into .devcontainer/ and optionally symlinking from Tools/):

ARG HYLO_LLVM_BUILD_TYPE=MinSizeRel
ADD make-pkgconfig.sh /tmp
RUN <<EOT bash
set -ex
set -o pipefail
PATH="/opt/llvm-\${HYLO_LLVM_BUILD_TYPE}/bin:\$PATH" \
     /tmp/make-pkgconfig.sh /usr/local/lib/pkgconfig/llvm.pc > /dev/null
rm /tmp/make-pkgconfig.sh
EOT

but it hasn't worked so far