[ASan/Win tests] Bring back -GS- as SEH tests fail otherwise
[blocksruntime.git] / lib / asan / Makefile.mk
blob0dafefc2fd8c44c5abb66cd55b1893c86284f468
1 #===- lib/asan/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 := asan
11 SubDirs :=
13 CCSources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file)))
14 CXXOnlySources := asan_new_delete.cc
15 COnlySources := $(filter-out $(CXXOnlySources),$(CCSources))
16 SSources := $(foreach file,$(wildcard $(Dir)/*.S),$(notdir $(file)))
17 Sources := $(CCSources) $(SSources)
18 ObjNames := $(CCSources:%.cc=%.o) $(SSources:%.S=%.o)
20 Implementation := Generic
22 # FIXME: use automatic dependencies?
23 Dependencies := $(wildcard $(Dir)/*.h)
24 Dependencies += $(wildcard $(Dir)/../interception/*.h)
25 Dependencies += $(wildcard $(Dir)/../sanitizer_common/*.h)
27 # Define a convenience variable for all the asan functions.
28 AsanFunctions := $(COnlySources:%.cc=%) $(SSources:%.S=%)
29 AsanCXXFunctions := $(CXXOnlySources:%.cc=%)