Skip to content

Commit

Permalink
exclude erroring flags by regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammed-nurulhoque committed Nov 22, 2023
1 parent 75c004e commit 6bc54cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SingleSource/Regression/DgOptions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ function(gcc_torture_dg_options_cflags Variable DG_DO DG_SRC File)

# Remove any flags that will make clang error
if (DG_CFLAGS)
list(REMOVE_ITEM DG_CFLAGS ${CLANG_ERRORING_CFLAGS})
foreach(ERROR_CFLAG ${CLANG_ERRORING_CFLAGS})
list(FILTER DG_CFLAGS EXCLUDE REGEX "^${ERROR_CFLAG}.*")
endforeach()
endif()

# Set the parent scope variable
Expand Down

0 comments on commit 6bc54cc

Please sign in to comment.