Lines Matching +full:debian +full:- +full:clang
2 This file assembles a toolchain for Linux using the Clang Compiler and musl.
4 It currently makes use of musl and not glibc because the pre-compiled libraries from the latter
5 have absolute paths baked in and this makes linking difficult. The pre-compiled musl library
8 As inputs, it takes external URLs from which to download the clang binaries/libraries/includes
9 as well as the musl headers and pre-compiled binaries. Those files are downloaded and put
10 into one folder, with a little bit of re-arrangement so clang can find files (like the C runtime).
14 """Downloads a debian file and extracts the data into the provided output directory"""
24 # This uses the extracted llvm-ar that comes with clang.
25 ctx.execute(["bin/llvm-ar", "x", "deb.ar"])
40 # Download the clang toolchain (the extraction can take a while)
49 # This puts the musl include files in ${PWD}/usr/include/x86_64-linux-musl
50 # and the runtime files and lib.a files in ${PWD}/usr/lib/x86_64-linux-musl
58 # kjlubick@ cannot figure out how to get clang to look in ${PWD}/usr/lib/x86_64-linux-musl
59 # for the crt1.o files, so we'll move them to ${PWD}/usr/lib/ where clang *is* looking.
61 ctx.execute(["cp", "usr/lib/x86_64-linux-musl/" + file, "usr/lib/"])