Skip to content

Commit

Permalink
Merge pull request JuliaLang#17493 from JuliaLang/kf/overridecheck
Browse files Browse the repository at this point in the history
Error if CC or CXX was specified in Make.user without override
  • Loading branch information
Keno authored Jul 19, 2016
2 parents 26fb934 + 5234aaf commit b480ce3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,10 @@ ifeq (exists, $(shell [ -e $(BUILDROOT)/Make.user ] && echo exists ))
include $(BUILDROOT)/Make.user
endif

ifneq ($(CC_BASE)$(CXX_BASE),$(shell echo $(CC) | cut -d' ' -f1)$(shell echo $(CXX) | cut -d' ' -f1))
$(error Forgot override directive on CC or CXX in Make.user? Cowardly refusing to build)
endif

ifeq ($(SANITIZE),1)
ifeq ($(SANITIZE_MEMORY),1)
SANITIZE_OPTS := -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-frame-pointer
Expand Down

0 comments on commit b480ce3

Please sign in to comment.