From 74683fe519072bc3b90b88056094ea7d59da9b9f Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Sat, 22 Aug 2015 01:07:05 +0000 Subject: [PATCH] Try to fix Mac build. llvm-svn: 245777 --- compiler-rt/lib/sanitizer_common/Makefile.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler-rt/lib/sanitizer_common/Makefile.mk b/compiler-rt/lib/sanitizer_common/Makefile.mk index fbd3009f2a94..73fc2132526a 100644 --- a/compiler-rt/lib/sanitizer_common/Makefile.mk +++ b/compiler-rt/lib/sanitizer_common/Makefile.mk @@ -10,9 +10,9 @@ ModuleName := sanitizer_common SubDirs := -Sources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file))) -Sources := $(filter-out $(wildcard $(Dir)/*_nolibc.cc),$(Sources)) -ObjNames := $(Sources:%.cc=%.o) +AllSources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file))) +LibcSources := $(filter-out $(wildcard $(Dir)/*_nolibc.cc),$(AllSources)) +ObjNames := $(LibcSources:%.cc=%.o) Implementation := Generic @@ -20,4 +20,4 @@ Implementation := Generic Dependencies := $(wildcard $(Dir)/*.h) # Define a convenience variable for all the sanitizer_common functions. -SanitizerCommonFunctions := $(Sources:%.cc=%) +SanitizerCommonFunctions := $(LibcSources:%.cc=%)