Fix VS build problems:
* rename build -> buildfiles to avoid clashing with BUILD
* set binary mode for stdin/out in bro
* convert bro to C
diff --git a/BUILD b/BUILD
index 6dcc133..c475fdf 100644
--- a/BUILD
+++ b/BUILD
@@ -7,7 +7,7 @@
licenses(["notice"]) # MIT
-STRICT_COMPILER_OPTIONS = [
+STRICT_C_OPTIONS = [
"--pedantic-errors",
"-Wall",
"-Wconversion",
@@ -15,15 +15,12 @@
"-Wextra",
"-Wlong-long",
"-Wmissing-declarations",
+ "-Wmissing-prototypes",
"-Wno-strict-aliasing",
"-Wshadow",
"-Wsign-compare",
]
-STRICT_C_OPTIONS = STRICT_COMPILER_OPTIONS + [
- "-Wmissing-prototypes",
-]
-
COMMON_HEADERS = [
"common/constants.h",
"common/dictionary.h",
@@ -139,8 +136,8 @@
cc_binary(
name = "bro",
- srcs = ["tools/bro.cc"],
- copts = STRICT_COMPILER_OPTIONS,
+ srcs = ["tools/bro.c"],
+ copts = STRICT_C_OPTIONS,
deps = [
":brotli_dec",
":brotli_enc",