Skip to content

Commit 6bc54cc

Browse files
exclude erroring flags by regex
1 parent 75c004e commit 6bc54cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SingleSource/Regression/DgOptions.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ function(gcc_torture_dg_options_cflags Variable DG_DO DG_SRC File)
222222

223223
# Remove any flags that will make clang error
224224
if (DG_CFLAGS)
225-
list(REMOVE_ITEM DG_CFLAGS ${CLANG_ERRORING_CFLAGS})
225+
foreach(ERROR_CFLAG ${CLANG_ERRORING_CFLAGS})
226+
list(FILTER DG_CFLAGS EXCLUDE REGEX "^${ERROR_CFLAG}.*")
227+
endforeach()
226228
endif()
227229

228230
# Set the parent scope variable

0 commit comments

Comments
 (0)