[compiler-rt] r252570 - [PGO] Add LLVM main include dir to profile runtime build

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 9 16:35:38 PST 2015


Author: davidxl
Date: Mon Nov  9 18:35:37 2015
New Revision: 252570

URL: http://llvm.org/viewvc/llvm-project?rev=252570&view=rev
Log:
[PGO] Add LLVM main include dir to profile runtime build

Runtime code implicitly depends on the defintions and const
values defined in LLVM proper, but currently such dependency
is made implicitly by duplicating code across two dirs. As 
part of the PGO cleanup effort, there will be changes to share
common sources. This is a preparation patch to enable it (NFC).

Differential Revision: http://reviews.llvm.org/D14487

Modified:
    compiler-rt/trunk/lib/profile/CMakeLists.txt

Modified: compiler-rt/trunk/lib/profile/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/CMakeLists.txt?rev=252570&r1=252569&r2=252570&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/profile/CMakeLists.txt Mon Nov  9 18:35:37 2015
@@ -11,6 +11,8 @@ set(PROFILE_SOURCES
   InstrProfilingRuntime.cc
   InstrProfilingUtil.c)
 
+include_directories("${LLVM_MAIN_INCLUDE_DIR}")
+
 if(APPLE)
   add_compiler_rt_runtime(clang_rt.profile
     STATIC




More information about the llvm-commits mailing list