Make failOn: newWarning work with workspace compilation (#2300)