mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 12:56:08 +00:00

The driver option translates to --compress-debug-sections=zstd cc1/cc1as/GNU assembler/linker options. `clang -g -gz=zstd -c a.c` generates ELFCOMPRESS_ZSTD compressed debug info sections if compression decreases size.
8 lines
303 B
C
8 lines
303 B
C
// REQUIRES: zstd
|
|
|
|
// RUN: %clang -### --target=aarch64-unknown-linux-gnu -gz=zstd -x assembler %s 2>&1 | FileCheck %s
|
|
// RUN: %clang -### --target=x86_64-pc-freebsd -gz=zstd %s 2>&1 | FileCheck %s
|
|
|
|
// CHECK: {{"-cc1(as)?".* "--compress-debug-sections=zstd"}}
|
|
// CHECK: "--compress-debug-sections=zstd"
|