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 \
|
2021-12-07 02:41:27 +08:00
|
|
|
-Wno-alloca \
|
2020-05-04 09:19:14 +08:00
|
|
|
-Wno-c++98-compat-pedantic \
|
|
|
|
-Wno-c99-extensions \
|
|
|
|
-Wno-conversion \
|
|
|
|
-Wno-covered-switch-default \
|
|
|
|
-Wno-disabled-macro-expansion \
|
|
|
|
-Wno-documentation-deprecated-sync \
|
2021-12-15 05:18:41 +08:00
|
|
|
-Wno-global-constructors \
|
2021-12-21 19:53:15 +08:00
|
|
|
-Wno-missing-braces \
|
2020-05-04 09:19:14 +08:00
|
|
|
-Wno-missing-field-initializers \
|
|
|
|
-Wno-old-style-cast \
|
|
|
|
-Wno-padded \
|
|
|
|
-Wno-sign-compare \
|
|
|
|
-Wno-unreachable-code-return \
|
|
|
|
-Wno-unused-parameter \
|
2021-12-17 04:35:30 +08:00
|
|
|
-Wno-used-but-marked-unused \
|
|
|
|
-Wno-source-uses-openmp
|