def METHOD_NAME(self):
    if self.options.shared:
        self.options.rm_safe("fPIC")
    try:
        del self.settings.compiler.libcxx
    except Exception:
        pass
    try:
        del self.settings.compiler.cppstd
    except Exception:
        pass