clang++ ignores -fno-exceptions if header is included from -isystem directory Let’s say I have main.cpp that includes utils.h from lib directory: