llvm-project/clang/test/Driver/version-build-config.test
Cassie Jones 68b939f931
[driver] Make --version show if assertions, etc. are enabled (#87585)
It's useful to have some significant build options visible in the
version when investigating problems with a specific compiler artifact.
This makes it easy to see if assertions, expensive checks, sanitizers,
etc. are enabled when checking a compiler version.

Example config line output:
Build configuration: +unoptimized, +assertions, +asan, +ubsan
2024-04-05 10:01:09 -07:00

7 lines
221 B
Plaintext

# REQUIRES: asserts
# RUN: %clang --version 2>&1 | FileCheck %s
# CHECK: clang version
# When assertions are enabled, we should have a build configuration line that reflects that
# CHECK: Build config: {{.*}}+assertions