Skip to content

Commit 5140f8f

Browse files
exclude erroring flags by regex
1 parent a400a7f commit 5140f8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: SingleSource/Regression/DgOptions.txt

+3-1
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)