[llvm] 19cfe5a - gn build: Define HWASAN_WITH_INTERCEPTORS=1 for hwasan_new_delete.cpp as well.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 28 15:45:11 PDT 2020


Author: Peter Collingbourne
Date: 2020-10-28T15:42:07-07:00
New Revision: 19cfe5a6debb59e976dd0ee7020d1b8873ad54dd

URL: https://github.com/llvm/llvm-project/commit/19cfe5a6debb59e976dd0ee7020d1b8873ad54dd
DIFF: https://github.com/llvm/llvm-project/commit/19cfe5a6debb59e976dd0ee7020d1b8873ad54dd.diff

LOG: gn build: Define HWASAN_WITH_INTERCEPTORS=1 for hwasan_new_delete.cpp as well.

Added: 
    

Modified: 
    llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn
index 75a77622d463..919d2347b2bc 100644
--- a/llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn
@@ -69,6 +69,7 @@ source_set("sources") {
 source_set("cxx_sources") {
   configs -= [ "//llvm/utils/gn/build:llvm_code" ]
   configs += [ "//llvm/utils/gn/build:crt_code" ]
+  defines = [ "HWASAN_WITH_INTERCEPTORS=1" ]
   deps = [ "//compiler-rt/lib/ubsan:cxx_sources" ]
   sources = [ "hwasan_new_delete.cpp" ]
 }


        


More information about the llvm-commits mailing list