[llvm] 0a4bbda - [gn build] Remove unnecessary include_dirs

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 26 15:42:28 PST 2022


Author: Arthur Eubanks
Date: 2022-01-26T15:40:54-08:00
New Revision: 0a4bbdabe32ef370a790261a0f4ec118f0f5342e

URL: https://github.com/llvm/llvm-project/commit/0a4bbdabe32ef370a790261a0f4ec118f0f5342e
DIFF: https://github.com/llvm/llvm-project/commit/0a4bbdabe32ef370a790261a0f4ec118f0f5342e.diff

LOG: [gn build] Remove unnecessary include_dirs

These are already part of crt_code.

Added: 
    

Modified: 
    llvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn
    llvm/utils/gn/secondary/compiler-rt/lib/msan/BUILD.gn
    llvm/utils/gn/secondary/compiler-rt/lib/profile/BUILD.gn
    llvm/utils/gn/secondary/compiler-rt/lib/tsan/rtl/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn
index f05168bd57c27..57374f5ad2ae4 100644
--- a/llvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn
@@ -102,9 +102,6 @@ target(asan_target_type, "asan") {
     sources += [ "asan_interceptors_vfork.S" ]
   }
 
-  # To be able to include sanitizer_common.
-  include_dirs = [ ".." ]
-
   # FIXME: have SANITIZER_COMMON_CFLAGS thingy? should fno-builtin be in
   # crt_code?
   cflags = [ "-fno-builtin" ]

diff  --git a/llvm/utils/gn/secondary/compiler-rt/lib/msan/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/msan/BUILD.gn
index 92be6dffa7562..ea933b30f7932 100644
--- a/llvm/utils/gn/secondary/compiler-rt/lib/msan/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/lib/msan/BUILD.gn
@@ -39,9 +39,6 @@ static_library("msan") {
     "msan_thread.h",
   ]
 
-  # To be able to include sanitizer_common.
-  include_dirs = [ ".." ]
-
   # FIXME: have SANITIZER_COMMON_CFLAGS thingy? should fno-builtin be in
   # crt_code?
   cflags = [ "-fno-builtin" ]

diff  --git a/llvm/utils/gn/secondary/compiler-rt/lib/profile/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/profile/BUILD.gn
index a0bc9b72c3652..21e3ae8d20284 100644
--- a/llvm/utils/gn/secondary/compiler-rt/lib/profile/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/lib/profile/BUILD.gn
@@ -25,10 +25,7 @@ static_library("profile") {
     cflags += [ "/wd4221" ]
   }
 
-  include_dirs = [
-    "..",
-    "../../include",
-  ]
+  include_dirs = [ "../../include" ]
 
   sources = [
     "GCDAProfiling.c",

diff  --git a/llvm/utils/gn/secondary/compiler-rt/lib/tsan/rtl/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/tsan/rtl/BUILD.gn
index db354d907a4e5..3f6db757f48ea 100644
--- a/llvm/utils/gn/secondary/compiler-rt/lib/tsan/rtl/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/lib/tsan/rtl/BUILD.gn
@@ -128,9 +128,6 @@ target(tsan_target_type, "rtl") {
     sources += [ "tsan_rtl_s390x.S" ]
   }
 
-  # To be able to include sanitizer_common.
-  include_dirs = [ ".." ]
-
   # FIXME: have SANITIZER_COMMON_CFLAGS thingy? should fno-builtin be in
   # crt_code?
   cflags += [ "-fno-builtin" ]


        


More information about the llvm-commits mailing list