blob: af133e997f9ccfe8603d973b3a5f4da7858b7e61 [file] [log] [blame]
## With a lone cflag
# RUN: rm -rf %t.SANDBOX
# RUN: lnt runtest test-suite \
# RUN: --sandbox %t.SANDBOX \
# RUN: --no-timestamp \
# RUN: --test-suite %S/Inputs/test-suite-cmake \
# RUN: --cc %{shared_inputs}/FakeCompilers/clang-r154331 \
# RUN: --use-cmake %S/Inputs/test-suite-cmake/fake-cmake \
# RUN: --use-make %S/Inputs/test-suite-cmake/fake-make \
# RUN: --use-lit %S/Inputs/test-suite-cmake/fake-lit \
# RUN: --cflag '-Wall' \
# RUN: > %t.log 2> %t.err
# RUN: FileCheck --check-prefix CHECK-CFLAG1 < %t.err %s
# CHECK-CFLAG1: Inferred C++ compiler under test
# CHECK-CFLAG1: CMAKE_C_FLAGS: '-Wall
# Ensure that default c flags for build configurations are made empty to avoid
# surprises:
# CHECK-CFLAG1: CMAKE_C_FLAGS_DEBUG: ''
# CHECK-CFLAG1: CMAKE_C_FLAGS_MINSIZEREL: ''
# CHECK-CFLAG1: CMAKE_C_FLAGS_RELEASE: ''
# CHECK-CFLAG1: CMAKE_C_FLAGS_RELWITHDEBINFO: ''