aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2020-12-16 11:47:10 +0000
committerGitHub <noreply@github.com>2020-12-16 11:47:10 +0000
commit0502943fb1ce6f24aff1f3086e55f7ceff86bd68 (patch)
tree0d696236cea9e2b09636b886469f4974850be082 /Makefile
parenta543685d9606554feeaac00067c93f3e749faf23 (diff)
downloadlibvfio-user-0502943fb1ce6f24aff1f3086e55f7ceff86bd68.zip
libvfio-user-0502943fb1ce6f24aff1f3086e55f7ceff86bd68.tar.gz
libvfio-user-0502943fb1ce6f24aff1f3086e55f7ceff86bd68.tar.bz2
fix clang build (#210)
Also add clang to pull request build checks. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a140ccd..f45d824 100644
--- a/Makefile
+++ b/Makefile
@@ -58,8 +58,11 @@ test: all
cd $(BUILD_DIR)/test; ctest --verbose
pre-push: realclean
- make test
- make test BUILD_TYPE=rel
+ make test CC=gcc
+ make test CC=gcc BUILD_TYPE=rel
+ make realclean
+ make test CC=clang
+ make test CC=clang BUILD_TYPE=rel
realclean:
rm -rf $(BUILD_DIR_BASE)