diff options
| author | Xinliang David Li <davidxl@google.com> | 2015-11-10 00:35:37 +0000 |
|---|---|---|
| committer | Xinliang David Li <davidxl@google.com> | 2015-11-10 00:35:37 +0000 |
| commit | 7efc57bc190d1690988e3ca9884208f72ccd554d (patch) | |
| tree | 860baf74f33c1358f4f24e126ba2798bcecb3384 /compiler-rt/lib | |
| parent | 86af9e07ff7f2531a8e3a368cd919259064e08ad (diff) | |
| download | bcm5719-llvm-7efc57bc190d1690988e3ca9884208f72ccd554d.tar.gz bcm5719-llvm-7efc57bc190d1690988e3ca9884208f72ccd554d.zip | |
[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
llvm-svn: 252570
Diffstat (limited to 'compiler-rt/lib')
| -rw-r--r-- | compiler-rt/lib/profile/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/profile/CMakeLists.txt b/compiler-rt/lib/profile/CMakeLists.txt index 6b37b39b4ff..e1aa88e3580 100644 --- a/compiler-rt/lib/profile/CMakeLists.txt +++ b/compiler-rt/lib/profile/CMakeLists.txt @@ -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 |

