2023-07-25 11:53:09 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. other/analysis/gen-file.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
run() {
|
|
|
|
echo "Running Clang compiler in variant '$*'"
|
|
|
|
clang++ -o /dev/null amalgamation.cc \
|
|
|
|
"${CPPFLAGS[@]}" \
|
|
|
|
"${LDFLAGS[@]}" \
|
|
|
|
"$@" \
|
2024-01-12 21:30:48 +01:00
|
|
|
-std=c++17 \
|
2023-07-25 11:53:09 +02: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 \
|
|
|
|
-Wno-documentation-unknown-command \
|
|
|
|
-Wno-global-constructors \
|
|
|
|
-Wno-missing-braces \
|
|
|
|
-Wno-missing-field-initializers \
|
|
|
|
-Wno-missing-noreturn \
|
|
|
|
-Wno-old-style-cast \
|
|
|
|
-Wno-padded \
|
|
|
|
-Wno-sign-compare \
|
2024-09-19 13:45:12 +02:00
|
|
|
-Wno-switch-default \
|
2023-07-25 11:53:09 +02:00
|
|
|
-Wno-tautological-pointer-compare \
|
|
|
|
-Wno-unreachable-code-return \
|
2024-09-19 13:45:12 +02:00
|
|
|
-Wno-unsafe-buffer-usage \
|
2023-07-25 11:53:09 +02:00
|
|
|
-Wno-unused-parameter \
|
|
|
|
-Wno-used-but-marked-unused \
|
|
|
|
-Wno-source-uses-openmp
|
|
|
|
}
|
|
|
|
|
|
|
|
. other/analysis/variants.sh
|