[llvm] 354ba1c - [gn build] Don't define CINDEX_EXPORTS

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 10:40:01 PDT 2020


Author: Arthur Eubanks
Date: 2020-10-02T10:39:49-07:00
New Revision: 354ba1cb8006c9126851e1b006f799de52ecb7bc

URL: https://github.com/llvm/llvm-project/commit/354ba1cb8006c9126851e1b006f799de52ecb7bc
DIFF: https://github.com/llvm/llvm-project/commit/354ba1cb8006c9126851e1b006f799de52ecb7bc.diff

LOG: [gn build] Don't define CINDEX_EXPORTS

This causes
../../clang/include\clang-c/Platform.h(23,11): warning: 'CINDEX_EXPORTS' macro redefined [-Wmacro-redefined]
  #define CINDEX_EXPORTS

Added: 
    

Modified: 
    llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn b/llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn
index 1078ec8f2f43..19e1c3c1cce7 100644
--- a/llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn
@@ -52,7 +52,6 @@ target(libclang_target_type, "libclang") {
 
   if (host_os == "win") {
     defines += [
-      "CINDEX_EXPORTS",
       "_CINDEX_LIB_",
     ]
   }


        


More information about the llvm-commits mailing list