Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在makefile中有这一行:
ifeq ($(filter -O2,$(BUILD_CXXFLAGS)),) SOME_VAR := ... endif
我想将其更改为同时过滤-O2 和-O3。那会是什么样子?
您可以根据需要添加任意数量的单词进行过滤:
$(filter -O2 -O3,$(BUILD_CXXFLAGS))