Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
llvm: Build all targets
The [/pkg-package builds all targets][1], so do the same here.

Currently:

    $ clang --version
    clang version 14.0.4
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /usr/bin
    $ clang --print-targets
      Registered Targets:
        amdgcn - AMD GCN GPUs
        bpf    - BPF (host endian)
        bpfeb  - BPF (big endian)
        bpfel  - BPF (little endian)
        r600   - AMD GPUs HD2XXX-HD6XXX
        x86    - 32-bit X86: Pentium-Pro and above
        x86-64 - 64-bit X86: EM64T and AMD64

After enabling all targets (and rebuilding/updating clang in the
follow-up commit):

    $ clang --version
    clang version 14.0.6
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /usr/bin
    pmenzel@invidia:~$ clang --print-targets
      Registered Targets:
        aarch64    - AArch64 (little endian)
        aarch64_32 - AArch64 (little endian ILP32)
        aarch64_be - AArch64 (big endian)
        amdgcn     - AMD GCN GPUs
        arm        - ARM
        arm64      - ARM64 (little endian)
        arm64_32   - ARM64 (little endian ILP32)
        armeb      - ARM (big endian)
        avr        - Atmel AVR Microcontroller
        bpf        - BPF (host endian)
        bpfeb      - BPF (big endian)
        bpfel      - BPF (little endian)
        hexagon    - Hexagon
        lanai      - Lanai
        mips       - MIPS (32-bit big endian)
        mips64     - MIPS (64-bit big endian)
        mips64el   - MIPS (64-bit little endian)
        mipsel     - MIPS (32-bit little endian)
        msp430     - MSP430 [experimental]
        nvptx      - NVIDIA PTX 32-bit
        nvptx64    - NVIDIA PTX 64-bit
        ppc32      - PowerPC 32
        ppc32le    - PowerPC 32 LE
        ppc64      - PowerPC 64
        ppc64le    - PowerPC 64 LE
        r600       - AMD GPUs HD2XXX-HD6XXX
        riscv32    - 32-bit RISC-V
        riscv64    - 64-bit RISC-V
        sparc      - Sparc
        sparcel    - Sparc LE
        sparcv9    - Sparc V9
        systemz    - SystemZ
        thumb      - Thumb
        thumbeb    - Thumb (big endian)
        ve         - VE
        wasm32     - WebAssembly 32-bit
        wasm64     - WebAssembly 64-bit
        x86        - 32-bit X86: Pentium-Pro and above
        x86-64     - 64-bit X86: EM64T and AMD64
        xcore      - XCore

This increases the (compressed) package archive size by 24 MB.

    $ ls -lh /src/mariux/beeroot/packages/llvm-14*
    -rw-r--r-- 1 pmenzel pmenzel  84M Jun  3 15:33 /src/mariux/beeroot/packages/llvm-14.0.4-0.x86_64.bee.tar.bz2
    -rw-r--r-- 1 pmenzel pmenzel 108M Jul 11 23:50 /src/mariux/beeroot/packages/llvm-14.0.6-0.x86_64.bee.tar.bz2
    $ ls -lh /src/mariux/beeroot/packages/clang-14*
    -rw-r--r-- 1 pmenzel pmenzel 203M Jun  4 12:09 /src/mariux/beeroot/packages/clang-14.0.4-0.x86_64.bee.tar.bz2
    -rw-r--r-- 1 pmenzel pmenzel 204M Jul 12 01:28 /src/mariux/beeroot/packages/clang-14.0.6-0.x86_64.bee.tar.bz2

[1]: https://github.molgen.mpg.de/mariux64/pkg-scripts/blob/1aa449293642bf8e43a390ff089e720e9e9796c7/llvm-12.0.1-0.build.sh#L53
  • Loading branch information
pmenzel committed Jul 12, 2022
1 parent ac4056d commit 758b83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm.be0
Expand Up @@ -25,7 +25,7 @@ mee_configure() {
-DLLVM_BUILD_LLVM_DYLIB=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_TARGETS_TO_BUILD="X86;AMDGPU;BPF" \
-DLLVM_TARGETS_TO_BUILD="all" \
-DLLVM_BUILD_TESTS=ON \
-DLLVM_INSTALL_UTILS=ON \
-Wno-dev \
Expand Down

0 comments on commit 758b83f

Please sign in to comment.