def METHOD_NAME(self):
    libcxx = self.conanfile.settings.get_safe("compiler.libcxx")
    compiler = self.conanfile.settings.get_safe("compiler")
    lib_flags = []
    if libcxx:
        stdlib_define = libcxx_define(compiler=compiler, libcxx=libcxx)
        lib_flags.extend(format_defines([stdlib_define]))
        cxxf = libcxx_flag(compiler=compiler, libcxx=libcxx)
        if cxxf:
            lib_flags.append(cxxf)
    return lib_flags