handle more -arch: options when avoiding D9025

Change-Id: I97ff0418e25aeaea4cae349f2d228fb35219b5c2
Reviewed-on: https://gerrit.libreoffice.org/80374
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
This commit is contained in:
Luboš Luňák 2019-10-07 13:57:48 +02:00
parent ea49b745e7
commit 336bd632f9

View file

@ -45,10 +45,10 @@ endef
# Avoid annoying warning D9025 about overriding command-line arguments.
gb_Helper_remove_overriden_flags = \
$(filter-out -W4 -w -arch:SSE -arch:AVX2 -Od -O2,$(1)) \
$(filter-out -W4 -w -arch:SSE -arch:SSE2 -arch:AVX -arch:AVX2 -Od -O2,$(1)) \
$(lastword $(filter -W4 -w,$(1))) \
$(lastword $(filter -Od -O2,$(1))) \
$(lastword $(filter -arch:SSE -arch:AVX2,$(1)))
$(lastword $(filter -arch:SSE -arch:SSE2 -arch:AVX -arch:AVX2,$(1)))
# $(call gb_CObject__command_pattern,object,flags,source,dep-file,compiler-plugins,symbols)
define gb_CObject__command_pattern