commit | 004bc2695c8cd7c957481893842730683fac4b92 | [log] [tgz] |
---|---|---|
author | Sam Elliott <selliott@lowrisc.org> | Thu Oct 10 09:37:32 2019 |
committer | Sam Elliott <selliott@lowrisc.org> | Thu Oct 10 09:37:32 2019 |
tree | 6e3418490e975de7a16ad856a9ccd48f8868cf97 | |
parent | a70a8dc656d8421b0f8061e4e91271eff9e7cdcc [diff] |
[test-suite] Guard DG_CFLAGS filtering git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@374295 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/SingleSource/Regression/C/gcc-c-torture/CMakeLists.txt b/SingleSource/Regression/C/gcc-c-torture/CMakeLists.txt index 350510c..89de769 100644 --- a/SingleSource/Regression/C/gcc-c-torture/CMakeLists.txt +++ b/SingleSource/Regression/C/gcc-c-torture/CMakeLists.txt
@@ -31,7 +31,9 @@ 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)