summaryrefslogtreecommitdiff
path: root/homebrew/crystal/.make.sh-auto
blob: 21132a878acec2526444f5c6a71d36a6c7baa67e (plain)
1
2
3
4
5
6
7
8
9
10
11
pkg:setup
(buildpath/"boot").install resource("boot")
ENV["CRYSTAL_CONFIG_BUILD_COMMIT"] = Utils.popen_read("git rev-parse --short HEAD").strip
end
ENV["CRYSTAL_CONFIG_PATH"] = prefix/"src:lib"
ENV.append_path "PATH", "boot/bin"
make deps
(buildpath/".build").mkpath
bin/crystal build -D without_openssl -D without_zlib -D preview_overflow -o .build/crystal src/compiler/crystal.cr --release --no-debug
resource("shards").stage do
buildpath/"bin/crystal" build -o buildpath/".build/shards" src/shards.cr