llvm-project/llvm/test/tools/llvm-config
Michal Gorny 6911324ed4 [llvm-config] Canonicalize CMake booleans to 0/1
Following the similar change to lit configuration, ensure that all CMake
booleans are canonicalized to 0/1 when being passed to llvm-config. This
fixes the incorrect interpretation of values when user passes another
value than the ON/OFF, and simplifies the code by removing unnecessary
string matching.

Furthermore, the code for --has-rtti and --has-global-isel has been
modified to print consistent values indepdently of the boolean used by
passed by the user to CMake. Sadly, the code already implicitly used
different values for the two (YES/NO for --has-rtti, ON/OFF for
--has-global-isel).

Include tests for all booleans and multi-value options in llvm-config.

Differential Revision: https://reviews.llvm.org/D28366

llvm-svn: 291593
2017-01-10 19:55:51 +00:00
..
booleans.test [llvm-config] Canonicalize CMake booleans to 0/1 2017-01-10 19:55:51 +00:00
cflags.test [llvm-config] Fix cflags test looking for "error" 2016-12-12 23:03:28 +00:00
ldflags.test
libs.test [llvm-config] Add --ignore-libllvm 2016-12-13 22:17:59 +00:00
system-libs.test [llvm-config] Print --system-libs only when static linking 2017-01-06 21:33:54 +00:00
system-libs.windows.test [llvm-config] Print --system-libs only when static linking 2017-01-06 21:33:54 +00:00