def METHOD_NAME(build_ext, ext):
    """Sets basic compiler flags for compiling C++11 code"""
    cc = build_ext._cxx_compiler
    args = ext.extra_compile_args
    std_flag = get_cxx_std_flag(cc)
    if std_flag is not None:
        args.append(std_flag)
    if sys.platform == 'darwin':
        # Set min macOS version
        min_macos_flag = '-mmacosx-version-min=10.9'
        if has_flag(cc, min_macos_flag):
            args.append(min_macos_flag)
            ext.extra_link_args.append(min_macos_flag)