scripts: pre-submit: Force GCC for -fanalyzer

openbmc-build-scripts' unit-test.py currently[1] modifies its own
environment to exploit clang. It seems like a pretty dicey approach
(modify the environment passed to the subprocess instead?), for now work
around it by forcing use of GCC for the pre-submit script.

[1]: https://github.com/openbmc/openbmc-build-scripts/blob/966d67da385aef095d19b20fd778fcb88fa7be7b/scripts/unit-test.py#L1064-L1065

Change-Id: Ia6259eb949c2bab7fd30b49fc5c2d69af4f6470d
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/scripts/pre-submit b/scripts/pre-submit
index 59ecace..1bed2d6 100755
--- a/scripts/pre-submit
+++ b/scripts/pre-submit
@@ -26,7 +26,7 @@
 # Ensure the test suite passes in the default configuration. Note
 # that we don't specify -Dabi=... - the default is equivalent to
 # -Dabi=deprecated,stable,testing.
-CFLAGS=-fanalyzer meson setup -Dabi-compliance-check=false "$BUILD"
+CC=gcc CXX=g++ CFLAGS=-fanalyzer meson setup -Dabi-compliance-check=false "$BUILD"
 meson compile -C "$BUILD"
 meson test -C "$BUILD"