diff --git a/src/Makefile b/src/Makefile index ef56bcb33..dbeb0e6d5 100644 --- a/src/Makefile +++ b/src/Makefile @@ -254,9 +254,8 @@ ifdef STATIC libs+=-static endif -ifeq ($(CC),gcc) +ifneq (,$(filter $(CC) $(CXX),gcc g++)) opts+=-mno-ms-bitfields - libs+=-mno-ms-bitfields endif # build with profiling information @@ -289,7 +288,7 @@ opts+=-fsanitize=undefined libs+=-fsanitize=undefined endif -ifeq ($(CC),clang) +ifneq (,$(filter $(CC) $(CXX),clang clang++)) libs+=-fuse-ld=lld endif