distributable: url: https://git.musl-libc.org/cgit/musl/snapshot/{{ version }}.tar.gz strip-components: 1 versions: - 1.2.3 relocatable: true provides: - bin/ld.musl-clang - bin/musl-clang dependencies: tea.xyz/gx/cc: c99 build: dependencies: tea.xyz/gx/make: '*' script: | # musl is linux only, so just make passthrough scripts on Darwin if test {{ hw.platform }} != "linux" then mkdir {{ prefix }}/bin cat > {{ prefix }}/ld.musl-clang < {{ prefix }}/musl-clang < int main() { printf("Hello World!"); return 0; } script: | # musl is linux only #FIXME? We don't sub our tokens in test scripts if test $(uname) != "Linux" then exit fi mv $FIXTURE $FIXTURE.c musl-clang $FIXTURE.c test "$(./a.out)" = "Hello World!"