2020-05-04 09:19:14 +08:00
|
|
|
#!/bin/bash
|
2018-02-23 10:22:38 +08:00
|
|
|
|
|
|
|
. other/analysis/gen-file.sh
|
|
|
|
|
2022-01-14 08:28:06 +08:00
|
|
|
set -e
|
|
|
|
|
|
|
|
run() {
|
|
|
|
echo "Running Clang compiler in variant '$*'"
|
|
|
|
clang++ -o /dev/null amalgamation.cc \
|
|
|
|
"${CPPFLAGS[@]}" \
|
|
|
|
"${LDFLAGS[@]}" \
|
|
|
|
"$@" \
|
2024-01-10 01:57:27 +08:00
|
|
|
-std=c++17 \
|
2022-01-14 08:28:06 +08:00
|
|
|
-Werror \
|
|
|
|
-Weverything \
|
|
|
|
-Wno-alloca \
|
|
|
|
-Wno-c++98-compat-pedantic \
|
|
|
|
-Wno-c99-extensions \
|
|
|
|
-Wno-conversion \
|
|
|
|
-Wno-covered-switch-default \
|
|
|
|
-Wno-disabled-macro-expansion \
|
|
|
|
-Wno-documentation-deprecated-sync \
|
2020-12-31 08:00:00 +08:00
|
|
|
-Wno-documentation-unknown-command \
|
2022-01-14 08:28:06 +08:00
|
|
|
-Wno-global-constructors \
|
|
|
|
-Wno-missing-braces \
|
|
|
|
-Wno-missing-field-initializers \
|
2022-04-03 22:52:26 +08:00
|
|
|
-Wno-missing-noreturn \
|
2022-01-14 08:28:06 +08:00
|
|
|
-Wno-old-style-cast \
|
|
|
|
-Wno-padded \
|
|
|
|
-Wno-sign-compare \
|
2022-02-08 19:30:59 +08:00
|
|
|
-Wno-tautological-pointer-compare \
|
2022-01-14 08:28:06 +08:00
|
|
|
-Wno-unreachable-code-return \
|
|
|
|
-Wno-unused-parameter \
|
|
|
|
-Wno-used-but-marked-unused \
|
|
|
|
-Wno-source-uses-openmp
|
|
|
|
}
|
|
|
|
|
|
|
|
. other/analysis/variants.sh
|