Skip to content

Commit

Permalink
Makefile: Error when building analyzegc with GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
topolarity committed May 30, 2023
1 parent 20752db commit 940173f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,9 @@ ifneq ($(BUILD_LLVM_CLANG),1)
$(error Clang must be available to use the clang analyzer. Either build it (BUILD_LLVM_CLANG=1) or use BinaryBuilder)
endif
endif
ifeq ($(USEGCC),1)
$(error Only Clang can be used for analyzegc, but GCC was auto-detected. Try setting CC and CXX to use Clang instead)
endif

clangsa: $(build_shlibdir)/libGCCheckerPlugin.$(SHLIB_EXT)
clangsa: $(build_shlibdir)/libImplicitAtomicsPlugin.$(SHLIB_EXT)
Expand Down

0 comments on commit 940173f

Please sign in to comment.