[llvm] r309552 - [Modules] llvm-config: Exclude CMAKE_CFG_INTDIR. It isn't used in headers.

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 03:07:13 PDT 2017


Author: chapuni
Date: Mon Jul 31 03:07:13 2017
New Revision: 309552

URL: http://llvm.org/viewvc/llvm-project?rev=309552&view=rev
Log:
[Modules] llvm-config: Exclude CMAKE_CFG_INTDIR. It isn't used in headers.

This is part of https://reviews.llvm.org/D35559

Modified:
    llvm/trunk/tools/llvm-config/CMakeLists.txt

Modified: llvm/trunk/tools/llvm-config/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-config/CMakeLists.txt?rev=309552&r1=309551&r2=309552&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-config/CMakeLists.txt (original)
+++ llvm/trunk/tools/llvm-config/CMakeLists.txt Mon Jul 31 03:07:13 2017
@@ -59,6 +59,12 @@ configure_file(${BUILDVARIABLES_SRCPATH}
 # Set build-time environment(s).
 add_definitions(-DCMAKE_CFG_INTDIR="${CMAKE_CFG_INTDIR}")
 
+if(LLVM_ENABLE_MODULES)
+  target_compile_options(llvm-config PUBLIC
+    "-fmodules-ignore-macro=CMAKE_CFG_INTDIR"
+    )
+endif()
+
 # Add the dependency on the generation step.
 add_file_dependencies(${CMAKE_CURRENT_SOURCE_DIR}/llvm-config.cpp ${BUILDVARIABLES_OBJPATH})
 




More information about the llvm-commits mailing list