[Sanitizer] Always prefer cached contents of /proc/self/exe if it's available
[blocksruntime.git] / lib / ubsan / Makefile.mk
blobd5561f41b152613526a8b70b0fc652973f142cbb
1 #===- lib/ubsan/Makefile.mk ---------------------------------*- Makefile -*--===#
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 #===------------------------------------------------------------------------===#
10 ModuleName := ubsan
11 SubDirs :=
13 Sources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file)))
14 CXXSources := ubsan_type_hash.cc ubsan_handlers_cxx.cc
15 CSources := $(filter-out $(CXXSources),$(Sources))
16 ObjNames := $(Sources:%.cc=%.o)
18 Implementation := Generic
20 # FIXME: use automatic dependencies?
21 Dependencies := $(wildcard $(Dir)/*.h)
22 Dependencies += $(wildcard $(Dir)/../sanitizer_common/*.h)
24 # Define a convenience variable for all the ubsan functions.
25 UbsanFunctions := $(CSources:%.cc=%)
26 UbsanCXXFunctions := $(CXXSources:%.cc=%)