[llvm] cdb2264 - [cmake] Remove AddLLVMDefinitions

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 24 00:27:19 PST 2023


Author: Jay Foad
Date: 2023-01-24T08:27:04Z
New Revision: cdb226433f1b9eb657b0db178f3f9b7e8a390442

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

LOG: [cmake] Remove AddLLVMDefinitions

This has been unused since D31125.

Differential Revision: https://reviews.llvm.org/D142362

Added: 
    

Modified: 
    

Removed: 
    llvm/cmake/modules/AddLLVMDefinitions.cmake


################################################################################
diff  --git a/llvm/cmake/modules/AddLLVMDefinitions.cmake b/llvm/cmake/modules/AddLLVMDefinitions.cmake
deleted file mode 100644
index dab16236d3e9..000000000000
--- a/llvm/cmake/modules/AddLLVMDefinitions.cmake
+++ /dev/null
@@ -1,17 +0,0 @@
-# There is no clear way of keeping track of compiler command-line
-# options chosen via `add_definitions', so we need our own method for
-# using it on tools/llvm-config/CMakeLists.txt.
-
-# Beware that there is no implementation of remove_llvm_definitions.
-
-macro(add_llvm_definitions)
-  # We don't want no semicolons on LLVM_DEFINITIONS:
-  foreach(arg ${ARGN})
-    if(DEFINED LLVM_DEFINITIONS)
-      set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")
-    else()
-      set(LLVM_DEFINITIONS ${arg})
-    endif()
-  endforeach(arg)
-  add_definitions( ${ARGN} )
-endmacro(add_llvm_definitions)


        


More information about the llvm-commits mailing list