aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Elliott <selliott@lowrisc.org>2019-10-10 09:37:32 +0000
committerSam Elliott <selliott@lowrisc.org>2019-10-10 09:37:32 +0000
commit004bc2695c8cd7c957481893842730683fac4b92 (patch)
tree6e3418490e975de7a16ad856a9ccd48f8868cf97
parenta70a8dc656d8421b0f8061e4e91271eff9e7cdcc (diff)
downloadtest-suite-004bc2695c8cd7c957481893842730683fac4b92.tar.gz
[test-suite] Guard DG_CFLAGS filtering
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@374295 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/CMakeLists.txt b/SingleSource/Regression/C/gcc-c-torture/CMakeLists.txt
index 350510c8..89de769b 100644
--- a/SingleSource/Regression/C/gcc-c-torture/CMakeLists.txt
+++ b/SingleSource/Regression/C/gcc-c-torture/CMakeLists.txt
@@ -31,7 +31,9 @@ function(gcc_torture_dg_options_cflags Variable File)
endforeach()
# Remove any flags that will make clang error
- list(REMOVE_ITEM DG_CFLAGS ${CLANG_ERRORING_CFLAGS})
+ if (DG_CFLAGS)
+ list(REMOVE_ITEM DG_CFLAGS ${CLANG_ERRORING_CFLAGS})
+ endif()
# Set the parent scope variable
set(${Variable} ${DG_CFLAGS} PARENT_SCOPE)