Skip to content

Wrapping a compiler with a caching tool causes Blake3 ASM failure #247

@thearchivalone

Description

@thearchivalone

When using Ccache, Sccache or Zig cc, the assembler step for Blake3 assumes that the wrapper is the compiler as seen in the snippet below:

138.8 [284/5100] Building ASM object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_avx512_x86-64_unix.S.o
138.8 error: unexpected argument '-D' found
138.8
138.8   tip: to pass '-D' as a value, use '-- -D'
138.8
138.8 Usage: sccache [OPTIONS] <--dist-auth|--debug-preprocessor-cache|--dist-status|--show-stats|--show-adv-stats|--start-server|--stop-server|--zero-stats|--package-toolchain <EXE> <OUT>|CMD>
138.8
138.8 For more information, try '--help'.
138.8 ninja: job failed: /usr/bin/sccache -DGTEST_HAS_RTTI=0 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/zig-bootstrap/out/build-llvm-host/lib/Support/BLAKE3 -I/zig-bootstrap/llvm/lib/Support/BLAKE3 -I/zig-bootstrap/out/build-llvm-host/include -I//zig-bootstrap/llvm/include -fPIC -mavx512vl -o lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_avx512_x86-64_unix.S.o -c /zig-bootstrap/llvm/lib/Support/BLAKE3/blake3_avx512_x86-64_unix.S

PR incoming with a simple workaround for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions