2020-05-04 09:19:14 +08:00
|
|
|
#!/bin/bash
|
2018-02-23 10:22:38 +08:00
|
|
|
|
|
|
|
. other/analysis/gen-file.sh
|
|
|
|
|
2018-07-17 09:18:04 +08:00
|
|
|
echo "Running Clang compiler"
|
2020-05-04 09:19:14 +08:00
|
|
|
clang++ -o /dev/null amalgamation.cc \
|
|
|
|
"${CPPFLAGS[@]}" \
|
|
|
|
"${LDFLAGS[@]}" \
|
|
|
|
-std=c++11 \
|
|
|
|
-Werror \
|
|
|
|
-Weverything \
|
|
|
|
-Wno-c++98-compat-pedantic \
|
|
|
|
-Wno-c99-extensions \
|
|
|
|
-Wno-cast-align \
|
|
|
|
-Wno-conversion \
|
|
|
|
-Wno-covered-switch-default \
|
|
|
|
-Wno-disabled-macro-expansion \
|
|
|
|
-Wno-documentation-deprecated-sync \
|
|
|
|
-Wno-missing-field-initializers \
|
|
|
|
-Wno-old-style-cast \
|
|
|
|
-Wno-padded \
|
|
|
|
-Wno-sign-compare \
|
|
|
|
-Wno-unreachable-code-return \
|
|
|
|
-Wno-unused-parameter \
|
|
|
|
-Wno-used-but-marked-unused
|