llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

llvm-lit substitutions should be discoverable.

Open atrick opened this issue 9 years ago • 2 comments

Bugzilla Link 31609
Version trunk
OS All
CC @jdenny-ornl

Extended Description

I’d like to be able to discover all available substitutions and their values for a given configuration.

e.g. $ lit —show-substitutions %key1% = “some string” %key2% = “other string”

atrick avatar Jan 11 '17 20:01 atrick

Does D77818 suffice? If so, can you close this issue?

jdenny-ornl avatar Mar 10 '21 20:03 jdenny-ornl

This feature is already implemented by the --show-suites options.

Example of output with lit 17.0.6:

-- Test Suites --
  The name of the test suite - 12 tests
    Source Root: <project_path>/tests
    Exec Root  : <project_path>/build-dir/tests
    Available Features: gcc-compiler
    Available Substitutions: %c_flags => --specs=nosys.specs
                             %cross-compiler-c => <toolchain_path>/bin/arm-none-eabi-gcc
                             %cross-compiler-cxx =><toolchain_path>/bin/arm-none-eabi-g++
                             %cxx_flags => --specs=nosys.specs -fno-exceptions

@atrick : you can close this issue.

matlo607 avatar Jan 04 '24 17:01 matlo607