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)

@@ -190,185 +190,17 @@
     
-copts = %5B%0A        %22-Wsign-compare%22,%0A        %22-Wdouble-promotion%22,%0A        %22-Wshadow%22,%0A        %22-Wunused-variable%22,%0A        %22-Wmissing-field-initializers%22,%0A    %5D%0A    return copts
+return %5B%5D
 %0A%0Ade

Fix Windows build