mirror of
https://github.com/depp/syncfiles.git
synced 2024-12-01 00:49:21 +00:00
f2317d0ce7
Add flags to the generator code to specify the location of input and output files.
41 lines
834 B
Python
41 lines
834 B
Python
# Bazel + GCC,
|
|
# Default:
|
|
# -U_FORTIFY_SOURCE
|
|
# -Wall
|
|
# -Wunused-but-set-parameter
|
|
# -Wno-free-nonheap-object
|
|
# -fno-omit-frame-pointer
|
|
# With -c dbg, adds:
|
|
# -g
|
|
# With -c opt, adds:
|
|
# -g0 -O2
|
|
|
|
# Base C options
|
|
COPTS_BASE = [
|
|
"-std=c90",
|
|
]
|
|
|
|
_COPTS_WARNING = [
|
|
"-Wall",
|
|
"-Wextra",
|
|
"-Wpointer-arith",
|
|
"-Wwrite-strings",
|
|
"-Wmissing-prototypes",
|
|
"-Wdouble-promotion",
|
|
"-Werror=implicit-function-declaration",
|
|
"-Winit-self",
|
|
"-Wstrict-prototypes",
|
|
"-Wno-format-zero-length",
|
|
]
|
|
|
|
# Internal C compilation options. Use this by default for all C targets in the
|
|
# repo.
|
|
COPTS = (
|
|
COPTS_BASE +
|
|
select({
|
|
"//bazel:warnings_off": [],
|
|
"//bazel:warnings_on": _COPTS_WARNING,
|
|
"//bazel:warnings_error": _COPTS_WARNING + ["-Werror"],
|
|
})
|
|
)
|