diff options
author | Sam Elliott <selliott@lowrisc.org> | 2019-10-10 09:37:32 +0000 |
---|---|---|
committer | Sam Elliott <selliott@lowrisc.org> | 2019-10-10 09:37:32 +0000 |
commit | 004bc2695c8cd7c957481893842730683fac4b92 (patch) | |
tree | 6e3418490e975de7a16ad856a9ccd48f8868cf97 /SingleSource/Regression/C/gcc-c-torture | |
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
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture')
-rw-r--r-- | SingleSource/Regression/C/gcc-c-torture/CMakeLists.txt | 4 |
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) |