load(
    "@rules_cc//cc:defs.bzl",
    _cc_library = "cc_library",
)
load(
    "@flatbuffers//:build_defs.bzl",
    _flatbuffer_cc_library = "flatbuffer_cc_library",
)

def micro_copts():
    copts = [
        "-Wsign-compare",
        "-Wdouble-promotion",
        "-Wshadow",
        "-Wunused-variable",
        "-Wmissing-field-initializers",
    ]
    return copts

def cc_library(**kwargs):
    kwargs.pop("build_for_embedded", False)
    _cc_library(**kwargs)

def flatbuffer_cc_library(**kwargs):
    kwargs.pop("build_for_embedded", False)
    _flatbuffer_cc_library(**kwargs)

load(
    "@rules_cc//cc:defs.bzl",
    _cc_library = "cc_library",
)
load(
    "@flatbuffers//:build_defs.bzl",
    _flatbuffer_cc_library = "flatbuffer_cc_library",
)

def micro_copts():
    return []

def cc_library(**kwargs):
    kwargs.pop("build_for_embedded", False)
    _cc_library(**kwargs)

def flatbuffer_cc_library(**kwargs):
    kwargs.pop("build_for_embedded", False)
    _flatbuffer_cc_library(**kwargs)

Fix Windows build